gritstonecycles Posted April 6, 2018 Share Posted April 6, 2018 Hi Can someone help me try and get my head around whats happening with Prestashop's Pages Not Found please. ver is 1.6.1.11 the ,htaccess file says: #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 Prestashop's Pages Not Found stats page says: insert the following line inside .htaccess ErrorDocument 404 /404.php "A user requesting a page which doesn't exist will be redirected to the following page: /404.php. This module logs access to this page. " I get a large number of not found pages with a page name of /index.php?controller=404 but which link to /index.php?controller=404-admin404 and have no referrer. So there is a discrepancy between the ,htaccess file generated and the text instruction in the stats page. And I don't know if the large number of pages not found are related to the .htaccess entry or are a seperate problem. Thanks Link to comment Share on other sites More sharing options...
selectshop.at Posted April 6, 2018 Share Posted April 6, 2018 The discrepancy is written there: If on your server mod_rewirte is activated, so it will rewrite not found pages to your 404.php site. If mod_rewirte is not activated on your server, or you aren't using friendly URL's the site will be redirected to /index.php?controller=404 , but same error template page will be shown. Your 404-template page. The instruction is only catching pages, for to be don't loosed. So, if on your stats is shwoing /index.php?controller=404 , instead of /404.php, it doens't matter. It is the same. 1 Link to comment Share on other sites More sharing options...
gritstonecycles Posted April 6, 2018 Author Share Posted April 6, 2018 Thanks for the reply. From what you are saying it implies that mod_rewrite is not activated. Was prety sure it is but will check. So are you saying that the stats page is logging failure to find /404.php? If so why don't I get the missing file logged? Link to comment Share on other sites More sharing options...
gritstonecycles Posted April 6, 2018 Author Share Posted April 6, 2018 So I've checked and mod_rewite is turned on. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 7, 2018 Share Posted April 7, 2018 You can simply identify if mod_rewrite and you are using friendly URL by the URL per se. friendly URL for category for ex.: yourdomain.com/en/56-category same non-friendly URL: yourdomain.com/index.php?id_category=5&controller=category&id_lang=3 Maybe your stats are writing both on different way, if there is a problem on your rewriting. The page is the same, so you don't need to be panic. All is going well. If you let me know your URL, I can check for you, if there is a problem on rewriting for this specific page or not. 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