Top OXID mod_rewrite, .htaccess Issues on Linux

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.

1 Comment
  1. Hello Ashant,

    I wrote about the same issue here:
    http://www.marco-steinhaeuser.de/rewritebase-oxid-eshop.html

    Obviously some people have certain problems with it.

    Regards
    Marco

Leave a Reply