[Zen Cart] How to determine if current page is HomePage?

Magic SEO URLs for Zen Cart.
Mickpunt
Posts: 5
Joined: Tue Apr 14, 2009 3:13 pm

[Zen Cart] How to determine if current page is HomePage?

Postby Mickpunt » Wed Apr 15, 2009 3:17 pm

Hi,

I succesfully installed Magic SEO and let it generate the .htaccess file, no problem, everything works fine, my compliments on your product and installation manual.

The only thing that does not work anymore is underneath code which determines if the current page is the homepage:

Code: Select all

<?php if ($_SERVER['QUERY_STRING']=='main_page=index') { ?>


If it is the homepage it will display a flash banner otherwise a picture.

Can someone tell me in PHP how to determine the Homepage with Magic SEO installed?

See http://shop.mlle-cover.com/en/

Thank you!

Mick Perez

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] How to determine if current page is HomePage?

Postby inveo » Wed Apr 15, 2009 3:47 pm

Code: Select all

if ($_SERVER['REQUEST_URI']=='/en/') {
// your code goes here
}

Mickpunt
Posts: 5
Joined: Tue Apr 14, 2009 3:13 pm

Re: [Zen Cart] How to determine if current page is HomePage?

Postby Mickpunt » Thu Apr 16, 2009 12:11 am

Thanks J, works like a charm.