Jump to content

.htaccess 301 redirect on products


Recommended Posts

Hi All,

 

Can someone tell me what I am doing wrong? I'd like to move my shop to a different domain with different URLs, so I set up 301 redirection.

 

I want to move:

 

www.domainA.com to www.domainB.com

but

www.domainA.com/22-product to www.domainB.com/77-article

 

I found a lot of .htaccess generators on the Internet, but still have problems. 

 

In my file is:

#301 Redirect Entire Directory.
RedirectMatch 301 ^/www\.domainA\.com\.(.*)$ /www.domainB.com/$1
 

Redirect 301 www.domaina.com./22-product http://www.domainB.com/77-article

 

 

The main domain is redirecting, but not the product:( The product is redirecting to www.domainB.com./22-product

 

 

Please help me...

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...