Mr2803 Posted December 6, 2021 Share Posted December 6, 2021 Hello everyone, I am faced with a problem. Before bringing my site into production, I had redirect enabled on 302. Now that I've gone online, I've set my shop to 301. Until before modifying this parameter I was using friendly urls. However once I changed from 302 to 301 my website was no longer able to find the links and always returned page not found. By disabling the short urls, everything seems to work again. Anyone have any idea why this is happening? Link to comment Share on other sites More sharing options...
corrigerunbug Posted December 6, 2021 Share Posted December 6, 2021 Hi, Did you refresh your htaccess file ? Do you have any SEO module installed ? Link to comment Share on other sites More sharing options...
PrestaServicePro Posted December 6, 2021 Share Posted December 6, 2021 Hello, Follow the below steps and maybe it can help you: 1) turn off friendly url 2) rename .htaccess 3) clear cache of shop 4) turn on friendly url And check again 1 Link to comment Share on other sites More sharing options...
Mr2803 Posted December 6, 2021 Author Share Posted December 6, 2021 50 minutes ago, corrigerunbug said: Hi, Did you refresh your htaccess file ? Do you have any SEO module installed ? I initially deleted the .htaccess file via ftp and then regenerated it. I currently have no SEO modules installed Link to comment Share on other sites More sharing options...
Mr2803 Posted December 6, 2021 Author Share Posted December 6, 2021 59 minutes ago, PrestaServicePro said: Hello, Follow the below steps and maybe it can help you: 1) turn off friendly url 2) rename .htaccess 3) clear cache of shop 4) turn on friendly url And check again I tried your solution. I disabled the friendly urls, deleted the .htaccess file, cleared the cache, but nothing. Now I am noticing among other things that prestashop gives me this warning: "URL rewrite (mod_rewrite) is not active on the server or the server configuration cannot be verified. If you want to use understandable URLs, you need to enable this mod." But if it was a server problem, how is it possible that until recently it worked? Link to comment Share on other sites More sharing options...
PrestaServicePro Posted December 6, 2021 Share Posted December 6, 2021 in this case ask your host about that and maybe they have made upgrade in server Link to comment Share on other sites More sharing options...
PrestaServicePro Posted December 7, 2021 Share Posted December 7, 2021 Glad it worked for you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now