I am trying to get my pages to work on a subdomain.


It would not go to page -> sub.mydomain.com/the%20cat.html

So I added this to the .htaccess.

rewriteCond %{REQUEST_URI} ^(.*)\ (.*html)$
rewriteRule ^.*$ %1-%2 [E=space_replacer:%1-%2]

That worked fine however a new problem. So now

It will go to -> page.mydomain.com/the%20cat.html
but not to -> page.mydomain.com/the%20cat-%20and%20me.html

What can I do?