Gossamer Forum
Quote Reply
redirect option
I have if statement that when the page is load need to redirect the user to deferent pages, something like
<%if temp =1%>
go to this URL
<%else%>
go to this URL
<%endif%>

How I can redirect the user to the URL that I need. That the accoully URL will change to the specific URL
Quote Reply
Re: [nir] redirect option In reply to
You tried doing it with a meta-redirect?

http://webdesign.about.com/...ries/a/aa080300a.htm

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] redirect option In reply to
Yes, but it not looking good, it load the page and than redirect, do you know maybe I can change the URL in other way.
Quote Reply
Re: [nir] redirect option In reply to
Nope - thats the only way you can do it (as the content-type header is already passed in, so you can't do a "redirect")

What you could do, is just make the WHOLE page contents like:

Code:
<%if temp = 1%>
... redirect code here
<%else%>
...other redirect code here
<%endif%>

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!