I have a website: www.domain.com and would like to redirect people who type that or just domain.com to: www.domain.com/blog
I have tried using a .htaccess file in my /www/ directory on the server but can’t get it to work. Is there a simple way to make this happen?
Thank you!
~Nixie
Next: I Have A Domain Name & I Want To Use It For A Free Gaming Website, Can Anybody Help Me Finding It?
Previous: Can I Buy Web Site Creator Sofware And Design A Website With My Own Domain Without Using A Goddady Type Site?
"How Do I Redirect People Who Type My Domain Name To A Directory On My Domain?" was posted on Saturday, October 17th, 2009 at 8:28 pm.
3 Responses to “How Do I Redirect People Who Type My Domain Name To A Directory On My Domain?”
Leave a Reply
Try this in the .htaccess file
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ “http://www.domain.com/blog/” [R=301,L]
you can also achieve this by placing a few pieces of html code within the default file in the root …
?>
this amounts to making the redirect on the server itself .. unlike in the previous case where the redirect it made by the browser http://theedifier.com/blogging-blogger/b…
Try a meta refresh? With a 0 second timeout. Or if you have access to the server and control of it, you can get the system to redirect for you.
don’t you have cpanel on your web server, usually the web hosting providers offer these functionalities. Mail it to your provider, they will tell you how to go about it