Old 22-08-2007, 17:45   #1 (permalink)
jthomas
coffee is not a crime
 
jthomas's Avatar
 
Join Date: Oct 2005
Location: Illinois, USA
Posts: 456
redirect

When people visit my site, I want them redirected to a page. However, I want them to be able to click a link to the original home page to continue to the web site when they are done with that page. I also don't want it timed. Server uses asp/javascript. Any ideas?

jt
  Reply With Quote
Old 22-08-2007, 18:48   #2 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,615
why not just rename the indexes?
__________________
  Reply With Quote
Old 24-08-2007, 22:47   #3 (permalink)
jthomas
coffee is not a crime
 
jthomas's Avatar
 
Join Date: Oct 2005
Location: Illinois, USA
Posts: 456
ya. but if i renamed the index, all the pages that point to the default page would now go to the redirected page. i just changed priorities in IIS. i guess i just wondered if it was possible with code in case i can't ever get to IIS settings.
  Reply With Quote
Old 25-08-2007, 08:17   #4 (permalink)
freelancr
Senior Member
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 2,097
Let me try and understand this. For example, lets say you have the following files.

index.asp
redirect.asp

You would like someone who visits "yourdomain.com" to be sent to the "redirect.asp" page, but you also want people to be able to visit "index.asp" by clicking on a link on your page.

If you didn't have access to IIS, you could setup "index.asp" to redirect to "redirect.asp" - but if you wanted someone to be able to still be able to view "index.asp" you could send them to this link: "index.asp?redirect=0", and handle the "redirect" query string.

Not sure what the ASP equivalent is, but this is what I would do for PHP. (it would be more accurate if this forum wasn't broken)

if ($redirect == 0)
{
// show index page
}
else
{
// redirect to other page
}

If I am understanding this correctly, why on earth would you ever want or need to do this? Surely you would be better off replacing index.asp with the content of redirect.asp, and vice versa, then you wouldn't need to do any redirecting and both pages will be accessible how you want them to be.
  Reply With Quote
Old 25-08-2007, 10:18   #5 (permalink)
jthomas
coffee is not a crime
 
jthomas's Avatar
 
Join Date: Oct 2005
Location: Illinois, USA
Posts: 456
The page I'm redirecting to is an important announcement that requires its own page. But I'd like to allow people to continue to the web site after they've read the announcement page.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8