Disable xampp http redirect to https

I created VirtualHost on my xampp in localhost for wordpress and added this code to 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 you enter http: // mysitefolder in a browser, it redirects to https: // mysitefolder and does not load my site. How can I disable HTTPS and only using http? thanks

+5
source share
2 answers

I don't have enough reputation to comment, but if you use Chrome and the local .dev server .dev , check out this post . Chrome has acquired gTLD .dev and now redirects the redirect to https:// . If so, consider using .test or some other domain. A quick way to check this out is to try another browser.

+19
source

In the wp-config.php file.

 define('WP_HOME','http://yourwordpressurl.com'); define('WP_SITEURL','http://yourwordpressurl.com'); 

This will force your site to use http: // instead of https

+1
source

Source: https://habr.com/ru/post/1273947/


All Articles