X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   htaccess DirectoryIndex cart.php (https://forum.x-cart.com/showthread.php?t=69258)

goodshop2u 05-28-2014 07:14 PM

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 ?

qualiteam 05-28-2014 11:37 PM

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.

goodshop2u 05-30-2014 09:01 PM

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.

qualiteam 06-02-2014 02:05 AM

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).


All times are GMT -8. The time now is 05:19 AM.

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