Change the urls back. See Changing_The_Site_URL for details of how to do this correctly without logging in.
I did change it and every other page is working properly except the home page. I can even access the dashboard and see that it’s changed!
Please re-read my post above.
I read it, AND followed the instructions (Edit wp-config.php and Functions.php) which changed the WordPress Address (URL) to http://localhost:8888/wordpress/
and the site address is the same i.e.
Site Address (URL) http://localhost:8888/wordpress/
The website is running now EXCEPT the home page. It keeps redirecting me to localhost/wordpress from http://localhost:8888/wordpress/
Any ideas?
I am really stuck!
Edit wp-config.php and Functions.php
No – you only use one of the methods outlined on that page – not two or more.
Okay, I’ve undone everything and only edited the wp-config.php this time. The homepage is still not working. I just don’t get why is it redirecting me to localhost/wordpress instead of http://localhost:8888/wordpress/
So what have you added to your wp-config.php file?
So you are trying to move WP from the root domain to a sub-folder? If “yes”, then you need to review Moving_WordPress.
No, I am not trying to move anything. I just want to access my home page and it’s not working…
Where was WP originally installed on your server?
It was originally installed on Applications/Wordpress and I’m using MAMP
Then I changed its location to Documents/server/wordpress. It was working fine until I changed the URL.
So you moved the site after it was installed! You need to review Moving_WordPress.
Okay, now I read it and placed this: //FIXME: do comment/remove these hack lines. (once the database is updated)
update_option(‘siteurl’, ‘http://localhost:8888/wordpress/’ );
update_option(‘home’, ‘http://localhost:8888/wordpress/’ );
in the wp-login.php file.
And the homepage still doesn’t work.
You have to follow all of the steps in Moving_WordPress.