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)
-   -   Xcart First page (https://forum.x-cart.com/showthread.php?t=70562)

tony1100 11-19-2014 07:57 AM

Xcart First page
 
Hello,

We would like to put the first page of the website as index.html not index.php or cart.php. so when customer visit our site they will see index.html then when they click link on index.html, it will go cart.php or index.php.

The problem is after I change .htaccess from DirectoryIndex cart.php to DirectoryIndex index.html, some link on the menu and logout is working weird.

for example: if i click button 'contact us' or 'my account' on the top menu, the actually content it will go to index.html, but address bar shows address is: http://www.xxx.ca/?target=contact_us. same as clicking my account, address bar shows: http://www.xxx.ca/?target=order_list, but the page content show index.html

any one can help?

thanks

tony1100 11-21-2014 08:57 AM

Re: Xcart First page
 
NO one knows?

tls 11-21-2014 09:22 AM

Re: Xcart First page
 
I think your saying that you want the store to be a subpage of your regular website. The default install of x-cart puts it in a subfolder. I don't recall but I think it was called cart or something like that. I changed it to be at the root just like you did.
You can put it in a folder with any name that you choose. Like http://www.xxx.com/x/index.php
What your trying to set up is perhaps a bit prettier, but I know that a subfolder works.
Some of the behavior that your setting is done by the webserver software on the machine that hosts your site rather than the x-cart software. I would guess that is why your not seeing a lot of responses because the answer depends on where you host your site.
.htaccess is a web server settings file for example. I have never used it to set index.html as the default but I think Apache lets you do that. The Apache docs may be where you could look.

What I like to do is have http://www.xxx.com as the website and https://store.www.com as the webstore. They can be on the same server.

Good luck

Brian

tony1100 11-21-2014 12:35 PM

Re: Xcart First page
 
our server is light speed with cpanel. i search around, it says use .haccess to set up website default page under cpanel.
i don't want put sub folder, we have older version xcart. it was working fine until we upgrade to xcart 5.

thanks anyway

tony_sologubov 11-24-2014 05:33 AM

Re: Xcart First page
 
You need to add mod_rewrite rules that will do the following:
1) If you are requesting http://domain.com/, it will go to index.html
2) If you are requesting http://domain.com/?anything, then it will go to http://domain.com/cart.php?anything

This way, you will be able to get your store working as you need.

Tony.

tony1100 11-24-2014 06:11 PM

Re: Xcart First page
 
Thanks Tony.


Quote:

Originally Posted by tony_sologubov
You need to add mod_rewrite rules that will do the following:
1) If you are requesting http://domain.com/, it will go to index.html
2) If you are requesting http://domain.com/?anything, then it will go to http://domain.com/cart.php?anything

This way, you will be able to get your store working as you need.

Tony.



All times are GMT -8. The time now is 04:02 PM.

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