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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates