moving blog from directory to subdomain
-
Hi All,
i have setup wordpress initially as http://www.example.com/blog , now moved it to a sub-domain in apache like http://blog.example.com, and changed the URL values in WP-Admin Panel.
I setup the .htaccess file in main domain, and added this rule
” RedirectMatch 301 ^/blog/(.*)$ http://blog.example.com/$1 “
to point old blog URL to the new URL.
Now the the problem is, when i search my blog in google, and then click on the blog articles links, it redirect me to the new blog site, fine till now. but the url in the browser, contains multiple articles names, like this :
” http://blog.example.com/ArticleName/?url=blog/ArticleName/ “
i want to remove the 2nd occurrence of the ArticleName in the URL.Thanks in advance.
- The topic ‘moving blog from directory to subdomain’ is closed to new replies.