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]

Options: ReplyQuote
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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.5 32 bit - Apache 2.4.46d - PHP 8.0.3…5.6.40 - MySQL 5.7.33 - MariaDB 10.5.9
Wampserver 3.2.5 64 bit - Apache 2.4.46d - PHP 8.0.3…5.6.40 - MySQL 5.7.33/8.0.23 - MariaDB 10.5.9
PhPMyadmin 5.0.4 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.