Jump to content

[Resolved] 404 Messages on site navigation


T1800

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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..

Link to comment
Share on other sites

  • T1800 changed the title to [Resolved] 404 Messages on site navigation

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...