OXID e-Commerce Admin, User and Developer Blog

euroblaze | OXID e-Commerce User Blog



Top OXID mod_rewrite, .htaccess Issues on Linux

Posted on November 29, 2009 by Ashant_Chalasani

Before you take off into the glories of e-Commerce with OXID, sometime, .htaccess and mod_rewrite configuration issues might pose small hinderences.  This is a collection of problems that you might encounter, and solutions to them.

RewriteBase in .htaccess

If you are are running a shop at a path other than the root web path (ex. http://www.domain.com/), say at http://www.domain.com/shop/, you will have to define the RewriteBase in your shop’s .htaccess file.  Add this line:

RewriteBase /path/to/dir/subdir/

Ex. if you are running the shop at http://www.mydomain.com/shop/, then the RewriteBase should be:

RewriteBase /shop/

AllowOverwrite All

In your Apache server configuration, AllowOverride should be set to All (None by default on most Apache installations).

This helps SEF URLs to work, by allowing URL manipulation in the .htaccess file of your OXID installation.



↑ Top

Switch to our mobile site