It is necessary that http://sub.domen.com is displayed with http://domen.com/index.php?tl=sub. Thanks for answers.
1 answer
RewriteEngine On RewriteCond %{HTTP_HOST} ^sub.domen.com RewriteRule ^(.*)$ http://domen.com/index.php?tl=sub [L,NC,QSA]
- Thank. And if the URL is dynamic, that is, domen.com/index.php?tl=sub1 , domen.com/index.php?tl=sub2 , domen.com/index.php?tl=sub3 . How to prescribe this by one rule? - foresh
|