We have made a flyer were a URL is printed at which looks like this:
mycompany.de/special
But if a user actually enters this URL, then he is getting redirected to the startpage https://www.mycompany.de/index.php instead of getting redirected to https://www.mycompany.de/special
This is my .htaccess so far, it forces https and www:
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
That works almost as expected, the only problem is that /special
is getting removed and replaced by /index.php
. The question is, why is special
getting replaced?