Trying to redirect subdomain index.php

Discussion in 'Apache' started by ollyno1uk, Nov 20, 2007.

  1. #1
    Hi I am trying to redirect and site that has both http://site.mainsitecom/index.php and http://site.mainsite.com I want to redirect the index to the root.

    I tried this
    
    
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
    RewriteRule ^index\.php$ http://forums.site.com/ [R=301,L] 
    Code (markup):
    Am I doing something wrong?

    Thanks
     
    ollyno1uk, Nov 20, 2007 IP