| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Help referencing page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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.
__________________
x-cart 4.0.16v linux server |
|||||||
#2
|
|||||||
|
|||||||
![]() DirectoryIndex main.php
Put that in your .htaccess file.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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?
__________________
x-cart 4.0.16v linux server |
|||||||
#4
|
|||||||
|
|||||||
![]() 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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() 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?
__________________
x-cart 4.0.16v linux server |
|||||||
#6
|
|||||||
|
|||||||
![]() why are you redirecting from home.htm to itself?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() 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...
__________________
x-cart 4.0.16v linux server |
|||||||
|
|||
X-Cart forums © 2001-2020
|