skip to Main Content

I'm trying to redirect /example to example.html in Apache's httpd.conf, but it doesn't work

Here's the code I'm trying to apply in httpd.conf: <VirtualHost *:80> ServerName www.test.com ServerAlias www.test.com DocumentRoot /home/test_com ErrorLog /home/logs/apache/www_test/www.test.com-error_log CustomLog /home/logs/apache/www_test/www.test.com.-access_log common env=!do_not_log # https redirect RewriteEngine On RewriteCond %{HTTP_HOST} www.test.com RewriteCond %{REQUEST_URI} /example RewriteRule . https://www.test.com/example.html [R=303,L] RewriteCond %{HTTPS}…

VIEW QUESTION
Back To Top
Search