.htaccess
Aus Mein Wiki
Sebra  (Diskussion | Beiträge)  | 
		Sebra  (Diskussion | Beiträge)   | 
		||
| Zeile 1: | Zeile 1: | ||
Tags: .htaccess, htaccess  | Tags: .htaccess, htaccess  | ||
| + | = Settings / Debug per .htaccess =  | ||
=== Turn on Error Reporting with .htaccess ===  | === Turn on Error Reporting with .htaccess ===  | ||
  php_flag display_errors on  |   php_flag display_errors on  | ||
  php_value error_reporting 7  |   php_value error_reporting 7  | ||
| + | = Url-Rewriting mit .htaccess =  | ||
* 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  | ||
| + | * http://stackoverflow.com/questions/2803040/apache-rewrite-mod-rewriterule-path-and-query-string  | ||
| + | Sample:  | ||
| + |  RewriteEngine On  | ||
| + |  RewriteCond %{HTTP_USER_AGENT} ^.*mobile.*$ [NC]  | ||
| + |  RewriteRule /path/index.php /path/iphone.php [QSA,L]  | ||
| + |  #EDIT: QSA is Query string append, so you don't need to handle that    | ||
| + |  #differently. If you want you can add an extra parameter too, like:  | ||
| + |  RewriteRule /path/index.php /path/iphone.php?extra=param [QSA,L]  | ||
| + | |||
| + | |||
| + | = Authentifizierung mit .htaccess =  | ||
== Hash Generatoren ==  | == Hash Generatoren ==  | ||
=== Auf Server (Linux) ===  | === Auf Server (Linux) ===  | ||

