Our site has something like this as our .htaccess
RewriteEngine On
RewriteRule ^/wiki/Main_Page$ /wiki/Welcome_to_Our_Site [R]
RewriteRule ^/?wiki/?$ / [R]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/index.php?title=Welcome_to_Our_Site [L,QSA]
RewriteRule ^/?wiki(/.+)$ %{DOCUMENT_ROOT}/index.php [L]
RewriteRule ^/?w(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
I have also used MediaWiki:Mainpage
to point to Welcome_to_Our_Site
.
For the sake of users who may have bookmarked the old page, I would also like Main_Page
to manually redirect to Welcome_to_Our_Site
--without a redirect notice--but it is not happening.
I originally moved the Main Page
to Welcome_to_Our_Site
, creating a redirect within the Mediawiki software, but even when I delete the Main Page
or add text into it without a redirect, my htaccess
rule does not override Mediawiki's own redirecting as I think it should and redirect Main Page
to Welcome_to_Our_Site
, changing the URL, but without the Mediawiki "(Redirected from Main Page)" redirect text showing up. What is wrong with the line I expect should do the trick RewriteRule ^/wiki/Main_Page$ /wiki/Welcome_to_Our_Site [R]
or the cascading after it?