Host unlimited blogs, sites, forums for $4.95 only with this host

Bluehost : htaccess redirect question

Bluehost is among our best web hosts. Sign up with bluehost here

This is a bluehost question posted by hofmax on 04 September 2006

I want to completely redirect my site structure and I want to redirect the urls to the homepage until the new page is ready.

So suppose I have links such as http://www.mysite.com/chat/language=greek+user=new

http://www.mysite.com/AdvancedGuestB….php?gb_id=724

So I wanted to try to redirect the respective folder /chat or /AdvancedGuestBook and everything thereafter using regular expressions

for the first example I tried this:

RewriteCond %{HTTP_HOST} ^/chat*
RewriteRule ^(.*)$ http://www.mysite.com$ [R=301,L]

These are supposed to be permanent redirects.
Can anybody tell me what the syntax with regex is for redirecting everything after chat or advancedguestbook ?

You can read more about bluehost in detail or sign up now with bluehost web hosting

This entry was posted in Bluehost Host Bookmark this post and come back later for the best web hosting coupons.

This web hosting blog is proudly hosted with reliable Hostgator webhosting for only one cents through this hostgator coupon. If you're new here, you may want to subscribe to this web hosting RSS feed

-->