X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to pull index.php or home.php (https://forum.x-cart.com/showthread.php?t=8826)

dihsar 08-06-2004 09:28 PM

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

cotc2001 08-07-2004 06:09 AM

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

whats the problem with .htaccess ??

dihsar 08-07-2004 09:32 AM

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

Adian009 08-07-2004 02:04 PM

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

dihsar 08-07-2004 10:53 PM

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.

Adian009 08-08-2004 10:26 AM

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

dihsar 08-08-2004 09:29 PM

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.


All times are GMT -8. The time now is 06:52 AM.

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