.htaccess RedirectMatch 301 issue

Posted by Steve on Pro Webmasters See other posts from Pro Webmasters or by Steve
Published on 2011-03-01T04:17:11Z Indexed on 2011/03/01 7:32 UTC
Read the original article Hit count: 406

Filed under:
|

Hi.

I've moved my Wordpress installation from one domain to another, and I want to use an .htaccess file on the original to redirect visitors to the new page on the new website.

The old site is http://www.steve.doig.com.au/wordpress/.

The new site is http://www.superlogical.net

I tried using tried using the following .htaccess file in the /wordpress directory:

RedirectMatch 301 http://www.steve.doig.com.au/wordpress(.*) http://www.superlogical.net/$1

However, all this does is redirect visitors to the URL: http://www.superlogical.net/wordpress/

I guess this is working properly, but I don't have Wordpress installed in a /wordpress folder on the new domain. How do I remove this from the URL redirected to?

Thanks..

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about redirect