htaccess
Posted by: mikedmasters (96.53.6.---)
Date: March 11, 2021 08:09PM

Having some problems re-directing with an .htaccess file. Is there a way to check an .htaccess file is working. My site doesn't appear to be picking it up at all..

I have running:
LoadModule rewrite_module modules/mod_rewrite.so

And my htaccess file includes:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ []%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Re: htaccess
Posted by: Otomatic (Moderator)
Date: March 12, 2021 09:00AM

Hi,

> RewriteCond %{SERVER_PORT} !^443$
I am not a specialist of .htaccess conditions, but it seems that a redirection on port 443 is done. However, Apache of Wampserver does not support the https protocol.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Sorry, only registered users may post in this forum.