Rewritebase OXID eShop
Again and again I see my website being found with the key word “rewritebase oxid eshop”. Obviously this seems not to be a clear case. Let me explain it:
The OXID eShop strictly uses so called re-written URLs, known as “permalinks” in WordPress. In opposite to e.g. WordPress, you cannot choose between “regular” URLs and re-written URLs, it’s use is assumed and this, absolutely makes sense: Who wants to run an online store without wanting to be ranked on top of the known search engines?
An example:
- Until OXID eShop Version 4, URLs where build like this:
http://www.yourshop.com/oxid.php/sid/f1abc0556fc27ad9a023d453793edfd8/cl/details/anid/29b49c9e2db7bc7c7.33407713/Genelec-8020/ - Now, this URL (built up by the program code) by default is re-written to another URL this style:
http://www.yourshop.com/category/product.html
Nice, isn’t it? In a matter of fact, your product details page will rank much higher in any search engine!
To achieve this effect, your webspace or server has to fulfill some requirements before you can set up OXID eShop:
- The component “mod_rewrite” has to be installed. You can check this easily with a simple file – let’s call it “check.php” – that you can load onto your server via FTP contents the following:
<?php phpinfo(); ?>
. Fire up your browser and insert http://www.yourstore.com/check.php now, search for “mod_rewrite”. If you cannot find anything, turn to your hosting provider. Don’t forget to ditch this file once you saw it – the information provided opens doors to all the hackers. - Check, if you really uploaded the delivered file .htaccess. Files with a leading dot are marked as hidden in the Unix world, so at a MAC, and will not be uploaded by default.
- Some hosting providers do not allow an own .htaccess file. Request it!
- Some hosting providers request an additional entry into the .htaccess file, called “RewriteBase”
In this case, replace
Options +FollowSymLinks
RewriteEngine On
by
Options +FollowSymLinks
RewriteBase /
RewriteEngine On
or use
RewriteBase /oxid/
if you run a sub-folder.
If there still problems remaining, turn to the forums, I’ll be there 😉
http://www.oxid-esales.com/forum/