Jump to content

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


zzz

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...