Hello everyone,
I moved my MediaWiki to a new Domain (and replaced the old one with Wordpress).
Now I would like to redirect all old search result links in Google search like sampleoldsite.com/oldwiki/samplearticle to
samplenewsite.com/newwiki/samplearticle (the article names itself stay the
same).
I'm trying things like
server {
[..]
server_name sampleoldsite;
location /oldwiki/ {
rewrite samplenewsite.com/wiki/([^\?]*) /w/index.php?title=$1&$args last
}
}
(/w/ is the installation directory of my MediaWiki installtion.)
but always get "Page not found" and redirecting to totally different page.
I moved my MediaWiki to a new Domain (and replaced the old one with Wordpress).
Now I would like to redirect all old search result links in Google search like sampleoldsite.com/oldwiki/samplearticle to
samplenewsite.com/newwiki/samplearticle (the article names itself stay the
same).
I'm trying things like
server {
[..]
server_name sampleoldsite;
location /oldwiki/ {
rewrite samplenewsite.com/wiki/([^\?]*) /w/index.php?title=$1&$args last
}
}
(/w/ is the installation directory of my MediaWiki installtion.)
but always get "Page not found" and redirecting to totally different page.