Gossamer Forum
Home : Products : Links 2.0 : Customization :

Redirection

Quote Reply
Redirection
Is there a way for me to make it so that when someone types in www.whatever.com that they goto www.whatever.com/directory
The reason I need this is so I can chmod the direcory to build pages to 777.


------------------
"Need Links installed or any other CGI Script? Contact me at [e-mail]Fudgenut78@aol.com[/e-mail] or goto http://www.owma.com/cgi.html

Quote Reply
Re: Redirection In reply to
I am not sure if this answers your question (chmodto 777, I don't what this has to do). Anyway these are the two simple methods to redirect your users from your index page to any other page.

1.
<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://www.whatever.com/whatever">
</HEAD>

Note: 5; is time in secs. change it to your needs.

2.
<HEAD>
<body onLoad=window.location.href="http://www.whatever.com/whatever">
</HEAD>
Quote Reply
Re: Redirection In reply to
You can also do this for a whole directory (or directory structure, or just one file, etc etc) if you use the .htaccess method.

Add the following line to your your .htaccess file:

Redirect / http://www.whatever.com/directory/

Do not forget the trailing /

You may have to fuss a bit with ./ and stuff to get it to work, but it worked great for us

------------------
Lisa Rowe
Fun, Funky and Free Graphics - www.webvoodoo.com/free/
WebDesignClinic and EZine - www.webdesignclinic.com