Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
moved wordpress files to new :80 default port, problems with redirect to old port
hey, did so like described in the videos. So: 1.) configured default apache port 2.) configured personal directory instead of htdocs as root 3.) moved a consisting worpress installation (that before has run under localhost:8888 and htdocs) to the new directory 4.) entered the url localhost/sites/wordpress_site but redirected to localhost:8888/sites/wordpress_site (where as a result nothing was found)
other installations work, so the server configuration might be correct.
i was searching the .htaccess of the wordpress files, but couldn't identify a R=301 there. Do you know other reasons that might cause this problem?
Jon W6,185 Points
The site URL is stored in the WordPress database so if you move the db or changed the url you need to update with the new url.
I find the best way is to open the db in something like phpmyadmin and make changes there. Follow these instructions:
Changing the URL directly in the database If you know how to access phpMyAdmin on your host, then you can edit these values directly to get you up and running again. 1. Backup your database and save the copy off-site. 2. Login to phpMyAdmin. 3. Click the link to your Databases. 4. A list of your databases will appear. Choose the one that is your WordPress database. 5. All the tables in your database will appear on the screen. 6. From the list, look for wp_options. Note: The table prefix of wp_ may be different if you changed it when installing. 7. Click on the small icon indicated as Browse. 8. A screen will open with a list of the fields within the wp_options table. 9. Under the field option_name, scroll down and look for siteurl. 10. Click the Edit Field icon which usually is found at the far left at the beginning of the row. 11. The Edit Field window will appear. 12. In the input box for option_value, carefully change the URL information to the new address. 13. Verify this is correct and click Go to save the information. 14. You should be returned to your wp_options table. 15. Look for the home field in the table and click Edit Field. Note There are several pages of tables inside wp_options. Look for the > symbol to page through them. 16. In the input box for option_value, carefully change the URL information to the new address. 17. Verify this is correct and click Go to save the information.
More info and other methods can be found on the codex - http://codex.wordpress.org/Changing_The_Site_URL
you're my hero, thx!