简体   繁体   中英

MediaWiki redirecting the main domain to incorrect page

I am new to wikimedia and recently created a wiki media installation at /var/www/root folder.

when I click on my main domain ex: http://10.10.0.100 , it redirects me to http//10.10.0.100/index.php/Main_Page and this display an error that page has been deleted.

But when I manually change the URL in the browser to http//10.10.0.100/index.php/Main_page (that is change the letter p in the "Main_Page" to lower case ) the right page gets displayed.

But how do to I make my domain to redirect to http//10.10.0.100/index.php/Main_ p age("page" with lower case p ) instead of redirecting to http//10.10.0.100/index.php/Main_ P age

You can do this:

RewriteEngine on
RewriteRule ^(.*)/Main_Page$ /$1/Main_page [R,L]

On your wiki, go to the page called MediaWiki:Mainpage and edit it to say Main page . MediaWiki should then automatically redirect you to that page when no page is given in the URL. It will also change some other things, such as the sidebar link to the main page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM