.htaccess
Aus Mein Wiki
Sebra (Diskussion | Beiträge) |
Sebra (Diskussion | Beiträge) (→Url-Rewriting mit .htaccess) |
||
Zeile 12: | Zeile 12: | ||
* 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 | ||
- | Sample: | + | * Sample: |
RewriteEngine On | RewriteEngine On | ||
RewriteCond %{HTTP_USER_AGENT} ^.*mobile.*$ [NC] | RewriteCond %{HTTP_USER_AGENT} ^.*mobile.*$ [NC] | ||
Zeile 19: | Zeile 19: | ||
#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] | ||
- | |||
- | |||
- | |||
- | |||
- | |||
= Authentifizierung mit .htaccess = | = Authentifizierung mit .htaccess = |