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

mmoskva 09-01-2006 08:36 PM

Help referencing page
 
On the customer-end I have 2 pages, "home.php and index.php".
- I would like to automatically reference the customer to another page (lets say "main.php") on the cart when references to the "home.php or index.php" pages are selected . How can I do this; I think their has to be something added to the .htaccess file?

*note: so anytime a customer is going to "home.php or index.php" on cart they will be automatically re-directed to the main.php.

balinor 09-02-2006 02:42 AM

Re: Help referencing page
 
DirectoryIndex main.php

Put that in your .htaccess file.

mmoskva 09-02-2006 09:47 AM

Re: Help referencing page
 
I applied the change "DirectoryIndex main.php"; and at the store when I keyed in mysite.com/xcart/home.php
- I was not automatically re-ferenced to the main.php page; it just took me to the home.php page?

balinor 09-02-2006 11:21 AM

Re: Help referencing page
 
Well no, that wouldn't redirect, that is only meant as a directory listing page. If you want to REDIRECT, you need to use a 301 redirect. Google it and you will find instructions.

mmoskva 09-27-2006 06:30 AM

Re: Help referencing page
 
Currently I have a 301 redirect for the home.htm which will reference to the the main.htm page

[ex] redirect 301 /home.htm http://www.sitename.com/main.htm

- Problem is that I want any page related to the home link (for example) the home.php?cat=3 and all other pages to automatically be included. What can I do?

balinor 09-27-2006 07:10 AM

Re: Help referencing page
 
why are you redirecting from home.htm to itself?

mmoskva 09-27-2006 09:12 AM

Re: Help referencing page
 
The home.htm is its own page. In the cart their are also other pages that are connected with the home.htm (or home.php) file.

For Ex:
home.htm?cat=3

- the "?cat=3" extension is somehow connected with the home.htm. So I need, is any page connected with the home.htm to re-ference the main.htm


This is my current redirection:
[ex] redirect 301 /home.htm http://www.sitename.com/main.htm

Insted of writing all the redirects for the home.htm pages (w/ ?cat=3 etc...) like below is their an alternative to include all extensions with the home.htm in the redirect?
redirect 301 /home.htm http://www.sitename.com/main.htm
redirect 301 /home.htm?cat=3 http://www.sitename.com/main.htm
redirect 301 /home.htm?cat=27 http://www.sitename.com/main.htm
redirect 301 /home.htm?cat=74 http://www.sitename.com/main.htm
redirect 301 /home.htm?cat=35 http://www.sitename.com/main.htm
redirect 301 /home.htm?cat=2 http://www.sitename.com/main.htm
redirect 301 /home.htm?cat=9 http://www.sitename.com/main.htm
etc...


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

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