I’m having the same issue. I have http://localhost:8888/testwordpress in my WordPress Address and Site URL in Admin>Settings>General. Changed the config file, I have access to my log-in and the dashboard and everything in there, but when I try to check a link I get the “404 not Found” message. Can Anyone help us, please? thanks in advance.
I went into PHPmyAdmin and did a search on any url that was still my live site, and changed it to localhost:8888/my-local-site-name-here. That worked. You might try the same. It’s not just the config.php file you need to modify.
Please update the ‘home’ and ‘site_url’ fields in wp-option table to your current local path (for ex:- http://localhost/your_site_name) and check. Also try change the permalinks from admin side-> Settings ->Permalinks to ‘default’.
Thread Starter
siuq
(@siuq)
Thanks for the answers.
I activated the option rewrite_module in Apache and now I can load the pages but it gives a code error. This one:
Parse error: syntax error, unexpected 'else' (T_ELSE) in C:\wamp\www\test\wp-content\themes\test\page.php on line 352
I don’t know why beacuse is the same file of the original page and it works.
Siuq,
It seems like some syntax error in PHP code you are using in your template file page.php It would be better if you could paste the code over here, so that I can check for the issue.
Thread Starter
siuq
(@siuq)
Thanks for helping Hakkim P Ahammed.
I activated the option “short open tag” in Apache and now it works.