Answer the question
In order to leave comments, you need to log in
"Subdomain" with space in htaccess. as?
Here are the lines
RewriteCond %{HTTP_HOST} ^(.+)\.tourist\.kharkov\.ua
RewriteCond %{REQUEST_URI} !=/viewpage.php
RewriteRule (.*) /viewpage.php?username=%1&$1 [L ,QSA]
allow you to enter
news.tourist.kharkov.ua or even
http://misha.tourist.kharkov.ua/
and see the page generated by the script http://tourist.kharkov.ua/viewpage.php?username=Misha
trouble comes if you enter something with spaces.
http://sergey%20palko.tourist.kharkov.ua/
How to solve the problem?
Answer the question
In order to leave comments, you need to log in
You may not need to deal with the space problem, because subdomain names with spaces are not written.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question