subdomain redirection error

Discussion in 'Apache' started by Pepy, Dec 15, 2009.

  1. #1
    this is probably some common stuff, but it's quite driving me mad since I have a little experience with redirections

    I'm trying to redirect test1.gamershrine.com to google.com ,just for test.
    If you visit my subdomain ..you'll notice that it doesn't forward you

    I've searched here a bit and found that I probably have to modify .htaccess

    it's here

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^test1.gamershrine.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.test1.gamershrine.com$
    RewriteRule ^/?$ "http\:\/\/www\.google\.com" [R=301,L]


    what to modify? don't wanna play with fire :eek:
     
    Pepy, Dec 15, 2009 IP