If some pages should be mod_rewrit-ed even if are not present on default pages, you will need do following steps:
- Open "Cofiguration->Settings->Webshop" in webshop administration panel.
- Set option "Use mod_rewrite for external links" to true. At setting page below you can see generated rules.
- Check your .htaccess file in site root folder and add all generated rules, if file not contain next section:
# ModRewrite Section <IfModule mod_rewrite.c> RewriteEngine On
- Add/edit rules
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^(.*)(index.php|gif|css|txt|jpg|js|swf|/admin/.*|/images/.*|templates/.*|includes/.*|ext/.*|install/.*)$( [OR] <path_to_rewrited_file>) RewriteRule ^(.*)$ index.php?mod_rewrite&$1 [L,QSA]( [OR]
<path_to_rewrited_file>)
This rule is optional. If mod_rewrit-ed access need only for some pages on the shop, you should use URL to this pages instead <path_to_rewrited_file>.Example:
RewriteCond %{REQUEST_URI} ^(.*)some_shop_page/some_page/product/details/.*$ - If you need this for several pages: use [OR] keyword.
Example:
RewriteCond %{REQUEST_URI} ^(.*) some_shop_page/some_page/product/details/.*$ [OR]
RewriteCond %{REQUEST_URI} ^(.*) some_shop_page/some_page/.*$ )
Note
|
| Warning If both settings "Use mod_rewrite" and "Use mod_rewrite for external links" are enabled, please use mod_rewrite rules only in .htaccess file. |