Jump to content

301 Redirect info needed


Recommended Posts

I am developing our new site design on a sub domain(1.6) and will eventually port this to our main domain which is currently running 1.5.

I need some information on 301 site redirection in prestashop and where I need to put the redirects

 

Thanks in advance

Link to comment
Share on other sites

you just simply want to redirect 301 from domain A to domain B ?

 

for example:

 

domainA.com/1-product.html -> domainB.com/1-product.html

domainA.com/2-product.html -> domainB.com/2-product.html

...

and so on?

Link to comment
Share on other sites

i have at the moment testshop.domain.com (the new site) and the old site domain.com, when the new site is finished i will change that from testshop.domain.com to domain.com, but i need redirects from old site pages to new site pages... if that makes any sense at all

Link to comment
Share on other sites

can i just double check this is right, following rewrites in .htaccess

 

RewriteCond %{HTTP_HOST} ^www.cabinmax.com/en/home/110-shirt-tidy-2-pack-2nd-generation-0702679484890.html [NC]
 
RewriteCond %{HTTP_HOST} ^www.cabinmax.com/en/carry-on/101-madrid-0616316228764.html [NC]
 
 
Thanks in advance for any help
Link to comment
Share on other sites

  • 2 weeks later...

At the very bottom of the htaccess on the 1.5 setup try

 

redirect 301 /old-page-name http://www.new.subdomain.com/pagename.html

 

Notice you don't use the domain name for the 1.5 setup just use /path/to/product.html

 

Just hope you don't have lots of products!

 

**Edit Just noticed you'll be moving to the proper domain not sending traffic to the subdomain.... Let me have a think**

 

OK.. so yu'll need to put at the bottom of the htaccess file

 

 

redirect 301 /old-page-name1.html /new-page-name1.html

redirect 301 /old-page-name2.html /new-page-name2.html

redirect 301 /old-page-name3.html /new-page-name3.html

redirect 301 /old-page-name4.html /new-page-name4.html

 

You may need to change (in seo and urls) the route to products, categories and cms so you don't have any conflicts. As long as the route is slightly different on the new site you'll be fine.

Edited by clint (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...