Avatar of beer9
beer9
Flag for India

asked on 

How RewriteEngine works in Apache web server?

I have following in my httpd.conf file in a web server

<VirtualHost *:80>
#stand-alone instances
include conf/my_application.conf
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L,NE]
</VirtualHost>

Open in new window


I would like to understand what it does?
Apache Web Server

Avatar of undefined
Last Comment
gheist

8/22/2022 - Mon