supercel80 Posted June 13, 2013 Share Posted June 13, 2013 (edited) Hi, A product in my shop shows up when using this url: http://domain.nl/dig...8208884612.html But when is type www or http://www, a 404 error occurs: www.domain.nl/digitale-slr-camera-s/5264-d3100-afs-dx-18105-vr-018208884612.html?controller=404 How can i fix this? Best regards, supercel Edited June 17, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
Dolke Posted June 13, 2013 Share Posted June 13, 2013 (edited) I belive there are few ways you can make this work. One would be to set DNS A records for both URL (with and without www prefix). These both should point to the same IP address so whatever your customer types into a browser should bring him/her to your website. This can be done by your hosting provider support agent. Here is a good guide: http://www.boutell.c...withoutwww.html rgds Dolke Edited June 13, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Dolke Posted June 13, 2013 Share Posted June 13, 2013 Btw, I just tried both cases and they both work just fine for me. Link to comment Share on other sites More sharing options...
supercel80 Posted June 13, 2013 Author Share Posted June 13, 2013 Thank you for your quick answer. The a records are as you supposed in dns. The problem does not occur when you visit www.domain.nl or domain.nl. It occurs when you visit a product on the site, with www.domain.nl/digitale-slr-camera-s/5264-d3100-afs-dx-18105-vr-018208884612.html Then i get the 404 error. Btw, I just tried both cases and they both work just fine for me. Also when you visit a product? Link to comment Share on other sites More sharing options...
Dolke Posted June 13, 2013 Share Posted June 13, 2013 (edited) When I do to this URL it redirects me to www.vip.nl Is that your hosting provider? Edited June 13, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
supercel80 Posted June 13, 2013 Author Share Posted June 13, 2013 The right url = http://tabletsuperstore.nl/tablet-accessoires/211-ipad-mini-smart-cover-licht-grijs-885909632459.html and with www it gives a 404: http://www.tabletsuperstore.nl/tablet-accessoires/211-ipad-mini-smart-cover-licht-grijs-885909632459.html Link to comment Share on other sites More sharing options...
Dolke Posted June 13, 2013 Share Posted June 13, 2013 Hm... I just realized that I have the same problem with my website... Strange. This is probably some core bug. Link to comment Share on other sites More sharing options...
supercel80 Posted June 13, 2013 Author Share Posted June 13, 2013 Which Prestashop version do you work with? I with 1.5.3 I see at the forge this bug report: http://forge.prestashop.com/browse/PSCFV-6353 Looks like our problem. Link to comment Share on other sites More sharing options...
Dolke Posted June 13, 2013 Share Posted June 13, 2013 Im using newest version, 1.5.4.1 but I have this problem to, and not only with products but also on the main page as well. Link to comment Share on other sites More sharing options...
supercel80 Posted June 13, 2013 Author Share Posted June 13, 2013 Maybe report this bug to the PS team? Link to comment Share on other sites More sharing options...
supercel80 Posted June 17, 2013 Author Share Posted June 17, 2013 Dolk: do you have a solutions? Link to comment Share on other sites More sharing options...
Dolke Posted June 17, 2013 Share Posted June 17, 2013 If there are not DNS records related then I really don't have, no. Sorry. Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 hmm maybe try to use 301 redirection from non-www to www ? something like this: RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Link to comment Share on other sites More sharing options...
supercel80 Posted June 17, 2013 Author Share Posted June 17, 2013 Thanks Vekia for the suggestion. This works for me: RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Kind Regards, Supercel Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 yeah, awesome thanks for information now i can go ahead and mark this thread as [solved] regards 1 Link to comment Share on other sites More sharing options...
Recommended Posts