X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Clean URL (https://forum.x-cart.com/showthread.php?t=57489)

John Ling 01-12-2011 09:42 AM

Clean URL
 
I am using version 4.2.3 i have read the article which says that the .htaccess blurb will be created in the General setting/SEO Option
however when i logged in there is SEO option but it doesn't create blurb for .htaccess Does any body has idea how can i generate Clean URL for my website?

qualiteam 01-13-2011 03:36 AM

Re: Clean URL
 
Please make sure you use a supported web server.
The Clean URLS requirements and additional information can be found here.

After that you should add the following code to the ".htaccess" file located in the directory where X-Cart is installed.

Code:

# Clean URLs [[[
Options +FollowSymLinks -MultiViews -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(payment|admin|provider|partner)/
RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ dispatcher.php [L]
</IfModule>
# /Clean URLs ]]]


In case X-Cart is installed in a sub-folder (e.g. accessed via http://yourdomain.com/xcart/) you should replace the blue part in the code above with the relative path(green) to your X-Cart installation.

In the provided example you should replace:
RewriteBase /
with
RewriteBase /xcart/

and
Code:

RewriteCond %{REQUEST_URI} !^/(payment|admin|provider|partner)/
with
Code:

RewriteCond %{REQUEST_URI} !^/xcart/(payment|admin|provider|partner)/


All times are GMT -8. The time now is 05:31 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.