Gossamer Forum
Home : General : Perl Programming :

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
ok .htaccess to the rescue again Smile
save this file as .htaccess:

Quote:
<Limit GET POST>
deny from all
ErrorDocument 403 /directory/index.html
</Limit>

stick this .htaccess file in your public_html directory (or whatever the name of the directory that you keep your html files. this will redirect everyone that types in www.whatever.com to www.whatever.com/directory

hope that helps