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

How to pull index.php or home.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-06-2004, 09:28 PM
 
dihsar dihsar is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 34
 

Default How to pull index.php or home.php

Lets say i installed my xcart under a directory www.mystore.com/xcart.Now how do i make it possible for visitors who type www.mystore.com get directed to www.mystore.com/xcart/home.php without any link?

I have tried manipulation .htaccess but i still can't get it done.any help will be appreciated.Thanks
__________________
THIS is my signature.I AM USING THE X_CART 4
Reply With Quote
  #2  
Old 08-07-2004, 06:09 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

well you could use meta redirect but thats going to kill search engines

whats the problem with .htaccess ??
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #3  
Old 08-07-2004, 09:32 AM
 
dihsar dihsar is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 34
 

Default

The problem is i am new to this.I would be very greatful if you help me with some codes i should write in the .htaccess and where to place it.Thank you
__________________
THIS is my signature.I AM USING THE X_CART 4
Reply With Quote
  #4  
Old 08-07-2004, 02:04 PM
 
Adian009 Adian009 is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Tiverton, RI, USA
Posts: 37
 

Default

You are definately not in a bad position - you have two very good options!

First, and what I would suggest...you could generate your 'HTML Catalog' (in Admin under Administration Menu on the right) in your root directory. This would generate "static" pages for every page on your site. Search engines will 'love' them and clients will appreciate the speed.

...or second you could add this to your .htaccess file (the one in your root web directory):

DirectoryIndex /xcart/customer/home.php

That would force everyone to /xcart/customer/home.php! If you need anymore help...just PM or Email me.

--alponte
__________________
---------------------------------------------
Infosolv, LLC
A Professional Services Company
X-Cart v3.5.10 & 4.01
Find our MOD\'s at: Custom X-Cart MOD\'s, Add-On\'s & X-Cart Hosting!
Reply With Quote
  #5  
Old 08-07-2004, 10:53 PM
 
dihsar dihsar is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 34
 

Default

Thanks for your helps.The problem with my .htaccess is that,it directs all the customers to where i want them at but,all the links on the page becomes broken. Thus:

the code in my .htaccess is ./xcart/home.php
but when customers get directed to xcart/home.php
and they click any item like CD under categories, the link becomes
www.mystore.com/home.php?cat-75
instead of www.mystore.com/XCART?home.php?cat-75.Hence an error of a non existance page.

I hope you understand what i meant.Get at me,please.Thank you.
__________________
THIS is my signature.I AM USING THE X_CART 4
Reply With Quote
  #6  
Old 08-08-2004, 10:26 AM
 
Adian009 Adian009 is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Tiverton, RI, USA
Posts: 37
 

Default

dihsar:

Post your complete .htaccess file from your root web directory, and the one in your /xcart/customer directory.

I will help you out! Send me an email if you post it today as I will be working at home all day anyways....

--al
__________________
---------------------------------------------
Infosolv, LLC
A Professional Services Company
X-Cart v3.5.10 & 4.01
Find our MOD\'s at: Custom X-Cart MOD\'s, Add-On\'s & X-Cart Hosting!
Reply With Quote
  #7  
Old 08-08-2004, 09:29 PM
 
dihsar dihsar is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 34
 

Default

I very much appreciate your help.I just moved everything from the xcart directory to the root directory.Everything seems to be working very perfect.Unless there is a reason why you think i should keep all xcart files in its own directory.Thanks in advance.
__________________
THIS is my signature.I AM USING THE X_CART 4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 05:57 AM.

   

 
X-Cart forums © 2001-2020