Answer the question
In order to leave comments, you need to log in
Can you help me fix .htaccess quickly?
There is .htaccess for dynamic subdomains, you also need to pass get data.
File:
RewriteCond %{HTTP_HOST} !^www\.test\.ru$
RewriteCond %{HTTP_HOST} ^(.*)\.test\.ru$
RewriteRule ^(.*)$ http://test.ru/users.php?user=%1 [L,P]
http://test.ru/users.php?user=login
at the actual address http://login.test.ru
. How to allow GET type parameters to be passed http://login.test.ru/?page=2
to http://test.ru/users.php?user=login&page=2
RewriteCond %{HTTP_HOST} !^www\.test\.ru$
RewriteCond %{HTTP_HOST} ^(.*)\.test\.ru$
RewriteCond %{REQUEST_URI} ^/?page=(.*)
RewriteRule ^(.*)$ http://test.ru/users.php?user=%1&page=$1 [L,P]
Answer the question
In order to leave comments, you need to log in
If you just need to transfer the url with the get to a regular page.
RewriteCond %{QUERY_STRING} ^id=229
RewriteRule ^test\.html$ /supermodel/? [R=301,L]
RewriteRule ^test\.html$ /spiders.html?&%{QUERY_STRING}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question