As background: I have been a happy user of Wampserver for several years, and my redeveloped WordPress site seems to work well on it. I use a virtual server called hwnhistory. I adapted Wampserver for SSL as per [zuziko.com]. I eventually generated a satisfactory self-certified certificate when I had chased down various issues. I have tried moving my WordPress site to SSL using the Really Simple SSL plugin but get some odd behaviour that they suggest is because of my server setup, so I have uninstalled Really Simple SSL. I have found that I still get similar odd behaviour, which I cannot understand so I would like to resolve this before trying to move to SSL again.
The behaviour is:
1) When I go to 'hwnhistory' or 'http://hwnhistory/' every facet of my site works including all subpages, and it is marked as Not Secure - as expected.
2) When I go to 'https://hwnhistory/' my homepage shows OK, but it is marked as Not (Fully) Secure.
3) On every sub-page (eg 'https://hwnhistory/village/') I get a 404 (Not Found), but it is marked as Secure with a padlock.
4) When I go to 'localhost' or 'http://localhost/' I get the normal Wampserver localhost page with the Server Configuration, and it is marked with an "i" as Not Secure.
5) When I type in 'https://localhost/' it goes to 'https://hwnhistory/' and is marked as Not (Fully) Secure.
To me, this does not seem normal behaviour, and it looks as if https is causing a rewriting. How can I find out what I have done wrong? If it is expected behaviour could someone confirm it?
I am using Wampserver Version 3.2.0 - 64bit, Server Software: Apache/2.4.37 (Win64) OpenSSL/1.1.1a PHP/7.3.1 - Port defined for Apache: 80
By the way, the "odd behaviour" on SSL using Really Simple SSL I mentioned above is that when I go to [hwnhistory] my homepage shows OK, but on every sub-page I get a 404 (Not Found).
My httpd-vhosts.conf is
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName hwnhistory
DocumentRoot "c:/hwnhistory"
<Directory "c:/hwnhistory/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
C:\hwnhistory\.htaccess is
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# block comment spam by denying access to no-referrer requests
# From [perishablepress.com]
#RewriteEngine On
#RewriteCond %{REQUEST_METHOD} POST
#RewriteCond %{REQUEST_URI} wp-comments-post\.php
#RewriteCond %{HTTP_REFERER} !(.*)hwnhistory(.*) [OR]
#RewriteCond %{HTTP_USER_AGENT} ^-?$
#RewriteRule .* []%{REMOTE_ADDR}/ [R=301,L]
The behaviour is:
1) When I go to 'hwnhistory' or 'http://hwnhistory/' every facet of my site works including all subpages, and it is marked as Not Secure - as expected.
2) When I go to 'https://hwnhistory/' my homepage shows OK, but it is marked as Not (Fully) Secure.
3) On every sub-page (eg 'https://hwnhistory/village/') I get a 404 (Not Found), but it is marked as Secure with a padlock.
4) When I go to 'localhost' or 'http://localhost/' I get the normal Wampserver localhost page with the Server Configuration, and it is marked with an "i" as Not Secure.
5) When I type in 'https://localhost/' it goes to 'https://hwnhistory/' and is marked as Not (Fully) Secure.
To me, this does not seem normal behaviour, and it looks as if https is causing a rewriting. How can I find out what I have done wrong? If it is expected behaviour could someone confirm it?
I am using Wampserver Version 3.2.0 - 64bit, Server Software: Apache/2.4.37 (Win64) OpenSSL/1.1.1a PHP/7.3.1 - Port defined for Apache: 80
By the way, the "odd behaviour" on SSL using Really Simple SSL I mentioned above is that when I go to [hwnhistory] my homepage shows OK, but on every sub-page I get a 404 (Not Found).
My httpd-vhosts.conf is
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName hwnhistory
DocumentRoot "c:/hwnhistory"
<Directory "c:/hwnhistory/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
C:\hwnhistory\.htaccess is
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# block comment spam by denying access to no-referrer requests
# From [perishablepress.com]
#RewriteEngine On
#RewriteCond %{REQUEST_METHOD} POST
#RewriteCond %{REQUEST_URI} wp-comments-post\.php
#RewriteCond %{HTTP_REFERER} !(.*)hwnhistory(.*) [OR]
#RewriteCond %{HTTP_USER_AGENT} ^-?$
#RewriteRule .* []%{REMOTE_ADDR}/ [R=301,L]