Forum

mediawiki: remove i...
 
Notifications
Clear all

mediawiki: remove index.php from url

1 Posty
1 Users
0 Reactions
1,017 Widok
0
Topic starter

example

1 Answer
0
Topic starter

1. .htaccess

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ index.php [L]

2. Add to LocalSettings.php

 $wgArticlePath = "/$1";

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: