Redirect to https
Posted by: TiffanyHome (
Date: July 19, 2022 07:39PM

Hello. I have virtual host with path to project. Same in etc host for example viz bellow

But in running have redirected to https and not working.

Another projects working properly. I dont know, pls help

<VirtualHost *:80>
ServerName project.local
ServerAlias www.local
ServerAlias localhost
DocumentRoot "G:\!!WORKING\project\!web"
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory "G:\!!WORKING\project\!web">
Options Indexes FollowSymLinks
Require all granted
AllowOverride All
# Options Indexes FollowSymLinks
# this prevent.htaccess reading, remove if you want .htaccess
#AllowOverride None
# allow web access
#Require all access

<VirtualHost *:80>
ServerAdmin localhost
DocumentRoot "G:\!!WORKING\project\!web"
ServerName project.local

Options: ReplyQuote
Re: Redirect to https
Posted by: Otomatic (Moderator)
Date: July 20, 2022 09:32AM


First, Wampserver doesn't do any http to https redirection.

Then, your VirtualHost, it's a bit of a mess and we can see that they have not been created by the tool integrated in Wampserver.

For example:
DocumentRoot "G:\!!WORKING\project\!web"
You don't need backslash but slash /

<Directory "G:\!!WORKINGproject\!web">
Same thing, with the addition of a final slash.

I can only advise you to :
- 1 - reset the httpd-vhosts.conf file to its original value:
# 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
- 2 - Put back the file C:\Windows\System32\drivers\etc\hosts to its original value: localhost
::1 localhost

- 3 - Create your Virtualhost with the Wampserver integrated tools:

- 4 - Modify your VirtualHost to fit your needs.

And before all that, it would be nice to do some checking and updating:

- A - Verify that all VC ++ packages are installed and with the latest versions.
To do this, use the tool:
Checks VC++ packages installed
Do not use a previously loaded tool. Make a new download to make sure you are using the correct version.
To download missing packages, do not rely on Microsoft links, they are not reliable, download packages on in section Visual C++ Redistribuable Packages
Do not forget that if you have a 64 bit Windows, you must install both 32 and 64 bit versions of each package.
You must install each package "as an administrator", so right-click the exe file and then run as Administrator.

- B - Apply Update 3.2.9 to your version of Wampserver
Wampserver update 3.2.9

Wampserver 3.2.9 32 bit - Apache 2.4.54 - PHP 8.1.8…5.6.40 - MySQL 5.7.39 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.54 - PHP 8.1.8…5.6.40 - MySQL 5.7.39/8.0.30 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - 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.