I have a script that needs to work this way. Basically if someone types in my domain, www.domain.com it should redirect the user to www.domain.com/?tab=home
the index.phtml queries the mysql database to look for a valid $tab variable. If it does, it includes the page for it..
ex.
?tab=home
?tab=support
?tab=products
So basically I need an if statement at the top of my script that redirects the user to www.domain.com/?tab=home if he/she typed in www.domain.com or domain.com
Thanks in advance.