View Single Post
Light Poster
26Sep2009,18:50  
medoomi's Avatar
Quote:
Originally Posted by shabbir View Post
You should use something like this
Code:
RewriteCond %{HTTP_HOST} my\.go4expert\.com$ [NC]  
RewriteRule ........
I've tried the following, but can't figure why it's not working
(I'm not sure of the right way to write this. I put myhostname for the domain name without the http and myhostnamewithhttpatthefront for the domain name with the http)

Code:
RewriteCond %{HTTP_HOST} myhostname$ [NC]
RewriteRule /gallery.html myhostnamewithhttpatthefront/gallery.php [r=301,nc]