Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Clean URL

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-12-2011, 09:42 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Default 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?
__________________
X-Cart Version 4.2.3
Reply With Quote
  #2  
Old 01-13-2011, 03:36 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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)/
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:33 AM.

   

 
X-Cart forums © 2001-2020