Added by vasiliy.chernomorov, last edited by andrey.demyaniv on Jan 29, 2010  (view change)

Labels:

seo seo Delete
urls urls Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

If some pages should be mod_rewrit-ed even if are not present on default pages, you will need do following steps:

  1. Open "Cofiguration->Settings->Webshop" in webshop administration panel.
  2. Set option "Use mod_rewrite for external links" to true. At setting page below you can see generated rules.
  3. 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
    
  4. 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/.*$

  5. 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
  • For more details about rewrite rules see Apache: Module mod_rewrite
  • Keyword [OR] need to be placed on one line with previous RewriteCond rule and through space from the last symbol of this condition
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.