Zen Cart Logo
Forums / General Questions / Redirect default home page?

Redirect default home page?

Locked

Views: 2,454

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 May 2007, 4:31 AM
#1
thedust2010 avatar

thedust2010

New Zenner

Join Date:
May 2005
Posts:
46
Plugin Contributions:
0

Redirect default home page?

I've looked everywhere in the forums but didn't see a solution for what I'm trying to do...

If I enter a URL with a cPath (category ID) that doesn't exist I go to Zen Cart's "Home" page, the contents of which can be controlled through the admin panel. Instead of this home page, how can I redirect the browser to a static HTML page somewhere else? Is this possible?

29 May 2007, 11:22 PM
#2
thedust2010 avatar

thedust2010

New Zenner

Join Date:
May 2005
Posts:
46
Plugin Contributions:
0

Re: Redirect default home page?

Bump.

Any ideas?

29 May 2007, 11:30 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Redirect default home page?

If I enter a URL with a cPath (category ID) that doesn't exist I go to Zen Cart's "Home" page,
I have not see this???

Use the admin > tools > developers toolkit > last/bottom left box and search for "http://zen-cart.com" and look through the results for the href ones and the files that they are in. and replace with this to maintain the shop portability:

'<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
2 Jun 2007, 1:19 AM
#4
thedust2010 avatar

thedust2010

New Zenner

Join Date:
May 2005
Posts:
46
Plugin Contributions:
0

Re: Redirect default home page?

What I meant was not zen-cart.com but the home page for my zen-cart installation. So if I have the cart installed at http://mydomain.com/store, when they visit http://mydomain.com/store, I want them to go to http://mydomain.com. Any subpages or categories should be fine, but Zen-Cart's default home page should redirect somewhere else.

2 Jun 2007, 2:25 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Redirect default home page?

Find this

'<a href=" ' . HTTP_SERVER . DIR_WS_CATALOG . ' ">';

Change what is between the quotes to your page link

6 Jun 2007, 5:24 AM
#6
thedust2010 avatar

thedust2010

New Zenner

Join Date:
May 2005
Posts:
46
Plugin Contributions:
0

Re: Redirect default home page?

Did the trick. Thanks a lot!