Difference between revisions of "MediaWiki/archive/embedding/1.16/index.php/.htaccess"
< MediaWiki | archive | embedding | 1.16/index.php
Jump to navigation
Jump to search
(Created page with "==About== Put this code in .htaccess in the same folder as index.php. ==Code== <apache> # optional but recommended: php_flag register_globals 0 <Files ".ht*"> deny from a...") |
m (moved MediaWiki/embedding/1.16/index.php/.htaccess to MediaWiki/embedding/1.16/portable/index.php/.htaccess: the non-portable code looks to have advantages too) |
(No difference)
|
Revision as of 14:20, 12 March 2011
About
Put this code in .htaccess in the same folder as index.php.
Code
<apache>
- optional but recommended:
php_flag register_globals 0 <Files ".ht*"> deny from all </Files>
- for debugging; set to 0 for production:
php_flag display_errors 1
- ** THIS is the important bit:
<IfModule mod_rewrite.c>
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php/?title=$1 [PT,L,QSA]
</IfModule> </apache>