Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable xampp redirect http to https

I created VirtualHost at my xampp in localhost for wordpress and add this code in httpd-vhosts.conf :

<VirtualHost *:80>
ServerAdmin webmaster@mysitefolder
DocumentRoot "E:/xampp/htdocs/mysitefolder"
ServerName mysitefolder
ErrorLog "logs/mysitefolder-error.log"
CustomLog "logs/mysitefolder-access.log" common
</VirtualHost>

but when enter http://mysitefolder in browser it's aout redirect to https://mysitefolder and not load my site. how can disable https and only using http ?thank you

like image 543
Matin Avatar asked Dec 09 '17 05:12

Matin


People also ask

How do I stop https redirect to HTTP?

To the right of your domain, click the Settings button. In the AUTOMATIC HTTPS IS ENABLED FOR THIS SITE section you will see a green lock icon. Click Change Automatic HTTPS Setting. Then click the Disable Automatic HTTPS button.


1 Answers

I don't have enough reputation to comment but if you are using Chrome and a .dev local server domain, have a look at this post. Chrome have purchased the .dev gTLD and now force the redirect to https://. If so, consider using .test or some other domain. A quick way to test it would be to try another browser.

like image 120
Geoff Avatar answered Sep 20 '22 17:09

Geoff