MediaWiki/archive/embedding/1.16/index.php/.htaccess

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< MediaWiki‎ | archive‎ | embedding‎ | 1.16/index.php
Revision as of 00:08, 15 December 2017 by Woozle (talk | contribs) (Woozle moved page MediaWiki/embedding/1.16/index.php/.htaccess to MediaWiki/archive/embedding/1.16/index.php/.htaccess without leaving a redirect: obsolete, keeps changing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

Put this code in .htaccess in the same folder as index.php.

Code

<apache>

  1. optional but recommended:

php_flag register_globals 0 <Files ".ht*"> deny from all </Files>

  1. for debugging; set to 0 for production:

php_flag display_errors 1

  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>