Search code examples
.htaccesshttp-redirectsubdomainurl-rewritinginvisible

Htaccess redirect not invisible


I've done many htaccess redirects, but for some reason this one doesn't redirect the subdomain to a subfolder.

RewriteCond %{HTTP:Host} ^((?!www\.)(.+)|(?:www\.)(.+))\.(timseverien\.nl)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? /subdomains/%2%3%5 [L]

When it redirects I can see /subdomains/x/ in my url bar which I don't want. The reason I have this in my htaccess is because my dearest host is a complete fuckup considering domains and subdomains.

So, my question is: Why is the redirect visible and what can I do to change it?


Solution

  • The problem wasn't in the .htaccess, but in the DNS of my host. I'm moving the first of November!