M
M
mishael2014-04-27 22:52:26
Apache HTTP Server
mishael, 2014-04-27 22:52:26

"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

2 answer(s)
1
1serfer, 2014-04-28
@1serfer

You may not need to deal with the space problem, because subdomain names with spaces are not written.

M
mishael, 2014-04-28
@mishael

Alas, this is just the right time. Well, at least I really want to.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question