Home rewrite url in https host
Reply: 0

rewrite url in https host

user589 Published in August 15, 2018, 11:15 am

In apache server i managed to rewrite urls from http to https and add a specific path to the url :

   RewriteEngine On
   RewriteCond %{HTTPS} off
   RewriteRule ^(.*) https://%{HTTP_HOST}/path/$1

But in ssl host users can remove the path from the url so they access with https://%{HTTP_HOST}/... without the path

I tried adding a rewrite inside ssl host : RewriteRule ^(.*) https://%{HTTP_HOST}/path/$1 but it didn't work.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.318192 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO