Hi,
I have a previous domain.
I moved my Mediawiki from
http://wiki.old-domain.com tohttp://wiki.domain.co
.
On vhost
wiki.old-domain.com, this is the content of .htaccess file.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^wiki.old-domain.net$ [NC,OR]
RewriteCond %{HTTP_HOST} ^wiki.old-domain.org$ [NC]
RewriteRule ^(.*)$
http://wiki.domain.co/$1 [L,R=301,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php?title=$1 [PT,L,QSA]
Here is .htaccess file for vhost wiki.domain.co:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php?title=$1 [PT,L,QSA]
When I access
wiki.old-domain.net or .org, it will redirect me to
http://wiki.domain.co/Main_Page.
Now, I want to eliminate "/Main_Page" and make it single URL
http://wiki.domain.co only.
The reason behind all of this is due to errors getting when changing of
address on Google search console which G wants to make it wiki.domain.co
only and not having /Main_Page.
Any advise and help would be much appreciated.
Thanks.
James