I'm trying to work on an existing WordPress site on my Mac using MAMP. I've setup a new database using phpMyAdmin and imported the tables from the backup of the online version. I pasted this into wp-config.php:
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']); define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
I used this command in SQL to change the URLs to localhost:
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');
When I go to
http://localhost the site comes up fine; in the admin I get the dashboard and I can do things like upload and activate a theme, but I am unable to, say, upload new media (get a broken jpg image), or modify the theme – Ultimatum. When I try to go to local pages on the site from the front page, I get the "The requested URL /about was not found on this server."