Reputation: 47
Ive got Prestashop runing all good, but what trying to accomplish is redirection...
basicaly when you enter websitename + /category name it leads to category and its perfectly fine but when you enter that combinaiton without "/" at the end it leads to "404 page". SEO told me it matters for them....
How do i redirect "http://shop/phones" to "http://shop/phones/", any ideas? Thank you for your comments in advance.
Upvotes: 0
Views: 1264
Reputation: 1
Later, you don't forget redirect all urls without slash to all urls with slash with code in .htaccess
:
RewriteRule ^([^.?]+[^.?/])$ $1/ [R=301,L]
Upvotes: 0
Reputation: 3349
Go in:
Preferences -> SEO & URLs
Then under "SCHEMA OF URLS" change this rule "Route to category":
{id}-{rewrite}
In this:
{id}-{rewrite}/
Save and test. I guess now you have the right redirect
Upvotes: 4