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

htaccess DirectoryIndex cart.php

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-28-2014, 07:14 PM
 
goodshop2u goodshop2u is offline
 

Member
  
Join Date: Jun 2011
Posts: 20
 

Unhappy htaccess DirectoryIndex cart.php

by default, after install v5.1, the htaccess file with following command.

Options -Indexes
DirectoryIndex cart.php
FileETag none


If I did not delete the "DirectoryIndex cart.php", then type blog.xxx.com.my will get access denied.

is there any problems or security issued by remove this statement ?
any other alternative way to do it ?
__________________
X-Cart v5 Business
Reply With Quote
  #2  
Old 05-28-2014, 11:37 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: htaccess DirectoryIndex cart.php

"DirectoryIndex cart.php" makes the server to load the X-Cart's front controller when a visitor opens your domain - this should not trigger any error unless you have some specific server setup.

What is blog.xxx.com.my? Would you like to install Wordpress to this subdomain, and keep X-Cart installed at xxx.com.my? If so, the server should route these domains into different web directories on the server.
__________________
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
  #3  
Old 05-30-2014, 09:01 PM
 
goodshop2u goodshop2u is offline
 

Member
  
Join Date: Jun 2011
Posts: 20
 

Default Re: htaccess DirectoryIndex cart.php

I install my wordpress in Subdomains.

I confirm that, if "DirectoryIndex cart.php" in htaccess is not remove, when I try to access blog.xxx.com.my will get 403 Forbidden error.
__________________
X-Cart v5 Business
Reply With Quote
  #4  
Old 06-02-2014, 02:05 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: htaccess DirectoryIndex cart.php

Are X-Cart and Wordpress installed into different directories on the server? I guess so.

Is your server configured to route www.* domain to the directory with X-Cart, and blog.* domain to the directory with Wordpress? If so, .htaccess from the X-Cart's directory should not affect the Wordpress installation (so, it may be a server misconfiguration problem).
__________________
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 5 > Dev Questions (X-Cart 5)


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 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 04:14 AM.

   

 
X-Cart forums © 2001-2020