T1800 Posted August 25, 2017 Share Posted August 25, 2017 Hi, My store front appears ok, but when I try to navigate through the various sub-pages of the site I get '404 page not found' errors. My Apache installation is pretty much as the defaults and I have not get linked my domain name to the site, so I am still using the IP address... i.e.. 123.456.7.89/store... Am I missing a setting here? Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 25, 2017 Share Posted August 25, 2017 Are the pages the 404 page from Cubecart (has all the side panels, header, footer, etc) or from the web server (plain text)? If plain text, then the web server has not been configured to accept/allow the mod_rewrite override directives. If CubeCart's page, then it may be the case that the "seo path" being formed is not what is expected. What does a URL from the menu look like? When using an IP address, we recommend adding the following to /includes/global.inc.php (please pay attention to what has a trailing slash and what does not): $glob['storeURL'] = 'http://127.0.0.1/store'; $glob['standard_url'] = 'http://127.0.0.1/store'; $glob['ssl_url'] = 'https://127.0.0.1/store'; $glob['cookie_domain'] = '127.0.0.1'; $glob['rootRel'] = '/store/'; $glob['ssl_path'] = '/store/'; Also, in the .htaccess file: ### Rewrite rules for SEO functionality ### <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /store/ This overrules what CubeCart may be determining is the store address, and then informs the web server what part of the path to keep/ignore when rewriting the URL. Also, clear CubeCart's cache (admin, Maintenance, Rebuild tab, Clear Cache). This will force CubeCart to rebuild the menu. Quote Link to comment Share on other sites More sharing options...
T1800 Posted October 6, 2017 Author Share Posted October 6, 2017 This was fixed by loading the mod_rewrite module in Apache. When Apache is installed on Arch Linux , the mod_rewrite is not loaded by default. To fix this, edit the httpd.conf and uncomment the line.. LoadModule rewrite_module modules/mod_rewrite.so Restart Apache with $ sudo systemctl restart httpd And it works.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.