Testa följande kod, borde kunna fungera efter lite eventuella småjusteringar.
Citat:
film.doman.com => doman.com/film/(index.php)
|
RewriteCond %{HTTP_HOST} ^film\.doman\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/?$
RewriteRule ^.*$
http://doman.com/film/ [L]
Citat:
film.doman.com/strang.php => doman.com/film/visa.php?=strang.txt
|
RewriteCond %{HTTP_HOST} ^film\.doman\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/([A-Za-z0-9]+)\.php$
RewriteRule ^.*$
http://doman.com/film/visa.php?=%1 [L,QSA]