.htaccess in mediawiki not working -
i have wiki , running @ example.com. when go page links change in url /index.php/main_page
i not want parts after / main page. want index.php out
i have in .htaccess
rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^/(.*)$ wiki/index.php?title=$1 [pt,l,qsa] rewriterule ^/*$ wiki/index.php [l,qsa] rewriterule ^$ wiki/index.php [l,qsa]
and in localsettings.
$wgscriptpath = "/w"; $wgarticlepath = "/wiki/$1";
where error? cannot figure out ... followed mediawiki t.
your 3 rewrite rules contradictory , don't match $wgscriptpath. meant like:
rewriterule ^/wiki/(.*)$ w/index.php?title=$1 [pt,l,qsa] rewriterule ^/*$ w/index.php [l,qsa]
see https://www.mediawiki.org/wiki/manual:short_url/apache more.
Comments
Post a Comment