Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress localhost not working [duplicate]

I am new to wordpress so please assist.

I know there have been some questions regarding this already there but it did not work hence asking for assistance

I have cloned a live repo and saved it in my WAMP www folder which I normally use for other php sites and refer it using localhost/project/ but now when I am trying this it is redirecting to https://localhost/project/

I performed following steps

1) Set up my db connection in wp-config.php

2) added these 2 lines in wp-config

define('WP_HOME','localhost/project');
define('WP_SITEURL','localhost/project');

3) turned WP_CACHE to false in wp-config.php

I don't know what else to do so please assist.

like image 729
Dhaval Chheda Avatar asked Jun 30 '26 05:06

Dhaval Chheda


1 Answers

If it does not work, you can try using php built-in server. Go to your project root directory and execute the below command in console.

php -S localhost:8000


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!