htaccess question redirect and php

Discussion in 'Apache' started by JEET, Jan 27, 2006.

  1. #1
    Hello ,
    I am using a subdomain in htaccess file .
    
    RewriteEngine on
    
    
    RewriteCond %{HTTP_HOST} ^sss.ad4business.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.sss.ad4business.com$
    RewriteRule ^(.*)$ http://www.ad4business.com/sss/$1 [R=301,L]
    
    Code (markup):
    It works fine but Now I want to convert this site to PHP so I added :

    
    RewriteEngine on
    
    
    RewriteCond %{HTTP_HOST} ^sss.ad4business.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.sss.ad4business.com$
    RewriteRule ^(.*)$ http://www.ad4business.com/sss/$1 [R=301,L]
    
     AddType application/x-httpd-php .php .htm .html
    
    Code (markup):
    Now trying to load index.html gives an internal server error .
    What is wrong and how can I fix this ?
    Am I missing some line distinction character ? Like in javascript ";" is used to end a line ...Something here ?
    Regards
    Jeet
     
    JEET, Jan 27, 2006 IP