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

Help referencing page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-01-2006, 08:36 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default 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.
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 09-02-2006, 02:42 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Help referencing page

DirectoryIndex main.php

Put that in your .htaccess file.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-02-2006, 09:47 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default 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?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #4  
Old 09-02-2006, 11:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 09-27-2006, 06:30 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default 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?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #6  
Old 09-27-2006, 07:10 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Help referencing page

why are you redirecting from home.htm to itself?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 09-27-2006, 09:12 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default 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...
__________________
x-cart 4.0.16v
linux server
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 03:29 PM.

   

 
X-Cart forums © 2001-2020