WordPress Version on old domain: 2.5
WordPress Version on new domain: 2.5.1
The address of my WordPress files in my original blog is here:
http://mysite.com/studio/myblog/All the WordPress Files
The URL of the blog is here:
http://mysite.com/I changed my domain name and the address of the WordPress files changed to:
http://mysite_newname.com/myblog/All the WordPress Files
The URL of the new blog is here:
http://mysite_newname.com/I used the 301 Redirect on the server and if someone types in:
http://mysite.com/ they are redirected to
http://mysite_newname.com/And that's good.
However, if someone types in
http://mysite.com/studio/myblog/,
they aren't redirected to
http://mysite_newname.com/In other words,
http://mysite.com/studio/myblog/ is not redirected to
http://mysite_newname.com/The .htaccess file in located in the /myblog folder is as follows:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /studio/myblog/
RewriteCond %{REQUEST_FILENAME}
!-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /studio/myblog/index.php [L]
</IfModule>
# END WordPress
There is also a .htaccess file in located in the root of
http://mysite.com/ and it has this in it:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteCond %{HTTP_HOST} ^mysite.com$ [OR]
RewriteCond %{HTTP_HOST} ^
www.mysite.com$RewriteRule ^/?(.*)$
http://mysite_newname.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^mysite.com$ [OR]
RewriteCond %{HTTP_HOST} ^
www.mysite.com$RewriteRule ^studio/myblog/?(.*)$
http://mysite_newname.com/$1 [R=301,L]
When I couldn't get the redirect to do exactly like I wanted, I found a Redirection plug-in and also used that, but I guess I didn't do the expressions correctly, because it doesn't give me what I want either.
Now, I'm kind of a WordPress rookie, so I'm kind of lost on this. Could somebody help me to get the Redirect correct?
Start Free Trial