A
A
Aleks3052015-02-10 22:46:01
Apache HTTP Server
Aleks305, 2015-02-10 22:46:01

How to correctly transfer the rewrite rule from .htaccess to virtual-host?

Good afternoon, colleagues.
Tell me about this issue: there was a need to transfer the rewrite rule from .htaccess to the virtual-host settings.
Added to virtual-host:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.test\.dev$
RewriteRule ^(.*)$ www.test.dev/$1 [R=permanent,QSA,L]
, everything is the same, as it was in .htaccess. But now at the end of the url with a redirect it turns out like this:
www.test.dev - that is, with two slashes at the end.
The whole brain broke already with these two slashes.
Tell me who has met this.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question