Every http
site in my newly installed WampServer 3.1.0 64-bit is automatically redirecting simple index.html
files with no .htaccess
t
Within a Virtual Host definition you also need tell Apache it is allowed to access the directories that hold the site code i.e. a <Directory>
I also learned recently that Google owns the .dev
tLD so you should consider using something else instead, specially if you are using Chrome browser as google could add anything in there to pick up the use of .dev
and, well, do anything.
I now find out that as of V63 Chrome does in fact force a redirection of .dev
This will also be happening to FF and other browsers
You also dont need to specify the domain name on the <VirtualHost www.superiorit.dev:80>
line. The *
is fine.
So try this an see if things improve.
<VirtualHost *:80>
ServerName superiorit.local
ServerAlias www.superiorit.local
DocumentRoot C:/xampp/htdocs/superiorit
<Directory "C:/xampp/htdocs/superiorit/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
ErrorLog "logs/superiorit.local-error.log"
CustomLog "logs/superiorit.local-access.log" common
</VirtualHost>
Also have a look at Why all *.dev domains target to my localhost?
AND https://tech.slashdot.org/story/17/09/18/192227/chrome-to-force-domains-ending-with-dev-and-foo-to-https-via-preloaded-hsts
Your problem is your .dev URLs, like RiggsFolly suggested. Thats why it works in other browsers like Edge. This is a new feature coming with Chrome 63. See articles below:
https://superuser.com/questions/1276048/starting-with-chrome-63-urls-containing-app-redirects-to-https https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/