Solution to 404 Error – Moving WordPress To Local Computer Using MAMP
-
Hi,
After much toil, I’ve found (a) solution(s) to my 404 Page Not Found using Port:80 Error. It took putting together several Forum posts. But, hopefully, this will help some people out there.
My first bit of good help was from Mark Kirby’s post, “How to create a local copy of a WordPress Site“. I USE MAC (but already had MAMP installed successfully), but the only difference is to use the MAMP instructions that Kirby leaves – then, continue on with his instructions (make sure and pay attention to the “http//” at the beginning of your local site. I left that out at first, and lost about a half hour).
The problem was, after that I could login to localsite/wordpress/wp-admin and use my GUI, but my permalinks kept giving me a 404 Error. So, I knew that it was talking to the db, but apache (port 80) wasn’t finding it.
Secondly, this link walked me through replacing my wp-config file (simply trash it, download a new copy of wp, and replace this file with wp-config-sample, then go to yoursite/wordpressurl; whereby WP will walk you through the redefine config steps).
Then I found this post. The final step was to tell Apache, via MAMP/conf/Apache/httpd.conf, to listen for changes:
...</VirtualHost> #added the following after said vhost <Directory "/Users/self/host/wp-site"> AllowOverride All Options -Indexes +FollowSymLinks Order allow,deny Allow from all </Directory>and then add this to my .htaccess file just before </IfModule>:
Options +FollowSymLinksAt last! I have a working WordPress and two new gray hairs! Good luck to you all.
The topic ‘Solution to 404 Error – Moving WordPress To Local Computer Using MAMP’ is closed to new replies.