- Jan 4, 2001
- 8,253
- 14
- 81
I hope there is a simple solution, but I am having trouble finding an answer.
I moved my Wordpress install from subdomain to the top-level domain and I would like to do a .htaccess redirect to point the old page locations to their respective new location.
So I want to redirect: blog.website.com/Page01
to: www.website.com/Page01
Currently I have:
This seems to display the content from the new location, but the URL in the browser doesn't update (i.e. keeps blog.website instead of www.website).
Any help?
I moved my Wordpress install from subdomain to the top-level domain and I would like to do a .htaccess redirect to point the old page locations to their respective new location.
So I want to redirect: blog.website.com/Page01
to: www.website.com/Page01
Currently I have:
Code:
Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^WEBSITE.COM/ [NC]
RewriteRule ^(.*)$ http://www.WEBSITE.COM$1 [L,R=301]
RedirectMatch 301 http//blog.WEBSITE.COM/(.*)$ http://www.WEBSITE.COM/$1
This seems to display the content from the new location, but the URL in the browser doesn't update (i.e. keeps blog.website instead of www.website).
Any help?