user2741612
user2741612

Reputation:

How to “redirect” from main page in Prestashop to specific product page?

This question is the same one that was asked on Feb 24.

I applied the answer using my site product page which is:

Redirect 301 / http://www.papasworkshop.net/home/8-the-lifter-scrollsaw-arm-lift-assembly.html

The error message I receive is WEBPAGE NOT AVAILABLE

The URL line contains: http://www.papasworkshop.net/home/8-the-lifter-scrollsaw-arm-lift-assembly.htmlhome/8-the-lifter-scrollsaw-arm-lift-assembly.html (and all of this text- except for the web address - repeats many many times on the URL line.

Upvotes: 0

Views: 1387

Answers (2)

Jon Lin
Jon Lin

Reputation: 143946

Try using RedirectMatch instead because Redirect links two different path nodes together. Meaning, / gets symbolically linked to http://www.papasworkshop.net/home/8-the-lifter-scrollsaw-arm-lift-assembly.html . Thus anything after the / also appears at the end of http://www.papasworkshop.net/home/8-the-lifter-scrollsaw-arm-lift-assembly.html.

Incidentally, that means you're browser will continue to loop and constantly get redirected by the server. So try:

RedirectMatch 301 ^/$ http://www.papasworkshop.net/home/8-the-lifter-scrollsaw-arm-lift-assembly.html

Upvotes: 1

Shylo Hana
Shylo Hana

Reputation: 1870

You need to create a .htaccess file in the /home subdirectory with the following line:

RewriteEngine On

Upvotes: 0

Related Questions