Gossamer Forum
Home : General : Perl Programming :


Quote Reply
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:

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

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