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

Xcart First page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-19-2014, 07:57 AM
 
tony1100 tony1100 is offline
 

Advanced Member
  
Join Date: Oct 2012
Posts: 31
 

Default 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.
Reply With Quote
  #2  
Old 11-21-2014, 08:57 AM
 
tony1100 tony1100 is offline
 

Advanced Member
  
Join Date: Oct 2012
Posts: 31
 

Default Re: Xcart First page

NO one knows?
__________________
Tony
Reply With Quote
  #3  
Old 11-21-2014, 09:22 AM
 
tls tls is offline
 

Advanced Member
  
Join Date: Sep 2014
Posts: 40
 

Default 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
Reply With Quote
  #4  
Old 11-21-2014, 12:35 PM
 
tony1100 tony1100 is offline
 

Advanced Member
  
Join Date: Oct 2012
Posts: 31
 

Default 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
Reply With Quote
  #5  
Old 11-24-2014, 05:33 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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!
Reply With Quote
  #6  
Old 11-24-2014, 06:11 PM
 
tony1100 tony1100 is offline
 

Advanced Member
  
Join Date: Oct 2012
Posts: 31
 

Default 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.
__________________
Tony
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



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:13 AM.

   

 
X-Cart forums © 2001-2020