Citat:
Originally posted by pontus@Mar 7 2006, 22:36
Jag skulle vilja göra följande 2 omskrivningar:
film.doman.com => doman.com/film/(index.php)
film.doman.com/strang.php => doman.com/film/visa.php?=strang.txt
eller om tvåan är omöjligt utan att rewrite index.php sidan till visa.php?=index.txt så skulle andra raden kunna bytas ut mot:
film.doman.com/visa/strang.php => domain.com/film/visa.php?=strang.txt
Hoppas verkligen någon person kan hjälpa mig med detta.
EDIT:Förtydligande, jag vill inte redirecta utan jag vill mod_rewrite adresserna.
|
Ettan är ju enkel iallafall:
RewriteCond %{HTTP_HOST} !^doman\.com[NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*)
http://doman.com/film/index.php [L,R]
Ettan med sparade attribut i URL:
RewriteCond %{HTTP_HOST} !^doman\.com[NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*)
http://doman.com/film/index.php?$1 [L,R]