Jump to content

cubecart v6.44 SEO related pages cannot be displayed?Such as product details and classification


zzz
 Share

Recommended Posts

CubeCart can run under any web server that can accomplish URL Rewriting (but is only "supported" with Apache).

CC5 has as optional the "friendly" URL feature, but CC6 made it required.

NGINX does not use the .htaccess file that Cubecart will create if not already present and containing the required rewriting statements.

The following are the relevant statements in the server-block file for the site:

location = /favicon.ico { access_log off; log_not_found off; try_files $uri =204; }
location = /robots.txt  { access_log off; log_not_found off; try_files $uri =204; }
location ~* \.(gif|jpe?g|png|ico|css|js|svg)$ { log_not_found off; try_files $uri =204; }
location /        { try_files $uri @rewrite; }
location @rewrite { rewrite ^\/(.*)? /index.php?seo_path=$1 last; }

I haven't tried it, but this server-block file may have the ability to include a file located where CubeCart is installed, or NGINX could already know to look for a server-block file at the root path, thus making it easier to avoid getting into the restricted areas of the server computer.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...