.htaccess
Aus Mein Wiki
Sebra (Diskussion | Beiträge) (→...) |
Sebra (Diskussion | Beiträge) (→Cheat Sheets) |
||
Zeile 19: | Zeile 19: | ||
* http://www.askapache.com/htaccess/modrewrite-tips-tricks.html | * http://www.askapache.com/htaccess/modrewrite-tips-tricks.html | ||
+ | |||
+ | * http://www.workingwith.me.uk/articles/scripting/mod_rewrite | ||
+ | |||
+ | * http://www.kb.mediatemple.net/questions/85/Using+.htaccess+rewrite+rules#gs | ||
+ | |||
+ | == Tools == | ||
+ | * Mod Rewrite Generator | ||
+ | ** http://www.generateit.net/mod-rewrite/ | ||
+ | |||
== Samples == | == Samples == | ||
Zeile 36: | Zeile 45: | ||
#differently. If you want you can add an extra parameter too, like: | #differently. If you want you can add an extra parameter too, like: | ||
RewriteRule /path/index.php /path/iphone.php?extra=param [QSA,L] | RewriteRule /path/index.php /path/iphone.php?extra=param [QSA,L] | ||
+ | |||
+ | RewriteCond %{REQUEST_FILENAME} !-f | ||
+ | RewriteCond %{REQUEST_FILENAME} !-d | ||
+ | RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] | ||
=== subdomain to folder/directory === | === subdomain to folder/directory === |