| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Xcart First page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
Tony Last edited by qualiteam : 11-25-2014 at 07:06 AM. |
|||||||
#2
|
|||||||
|
|||||||
Re: Xcart First page
NO one knows?
__________________
Tony |
|||||||
#3
|
|||||||
|
|||||||
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
__________________
X-Cart Business 5.2 Wholesale Product Filter |
|||||||
#4
|
|||||||
|
|||||||
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 |
|||||||
#5
|
|||||||||
|
|||||||||
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.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#6
|
|||||||
|
|||||||
Re: Xcart First page
Thanks Tony.
Quote:
__________________
Tony |
|||||||
|
|||
X-Cart forums © 2001-2020
|