.htaccess
Aus Mein Wiki
Sebra (Diskussion | Beiträge) (→Turn on Error Reporting with .htaccess) |
Sebra (Diskussion | Beiträge) (→Url-Rewriting / Speaking-Urls mit .htaccess) |
||
Zeile 8: | Zeile 8: | ||
= Url-Rewriting / Speaking-Urls mit .htaccess = | = Url-Rewriting / Speaking-Urls mit .htaccess = | ||
+ | == Cheat Sheets == | ||
* mod_rewrite Quick Reference and Cheat Sheet | * mod_rewrite Quick Reference and Cheat Sheet | ||
** http://semlabs.co.uk/journal/mod_rewrite-quick-reference-and-cheat-sheet | ** http://semlabs.co.uk/journal/mod_rewrite-quick-reference-and-cheat-sheet | ||
+ | * Mod_Rewrite Variables Cheatsheet | ||
+ | ** http://www.askapache.com/htaccess/mod_rewrite-variables-cheatsheet.html | ||
* http://stackoverflow.com/questions/2803040/apache-rewrite-mod-rewriterule-path-and-query-string | * http://stackoverflow.com/questions/2803040/apache-rewrite-mod-rewriterule-path-and-query-string | ||
Zeile 22: | Zeile 25: | ||
* http://www.askapache.com/htaccess/modrewrite-tips-tricks.html | * http://www.askapache.com/htaccess/modrewrite-tips-tricks.html | ||
+ | |||
+ | ** Sample: | ||
+ | #Sending requests to a php script ^ | ||
+ | #This .htaccess rewrite example invisibly rewrites requests for all Adobe pdf | ||
+ | #files to be handled by /cgi-bin/pdf-script.php | ||
+ | RewriteRule ^(.+)\.pdf$ /cgi-bin/pdf-script.php?file=$1.pdf [L,NC,QSA] | ||
= Authentifizierung mit .htaccess = | = Authentifizierung mit .htaccess = |