Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDeepti Boddapati
3,236 PointsAfter moving the local installation to a subdirectory the url redirects to www.myurl.com:8080/subdirectoryname.
What do I need to do to make the port issue go away?
Thanks!
3 Answers
Stephen O'Connor
22,291 PointsHave you defined the site url and home in your wp-config.php file? It goes near the top under the other constants.
/** Site Home and URL */
define( 'WP_HOME', 'http://www.myurl.com/subdirectory' );
define( 'WP_SITEURL', 'http://www.myurl.com/subdirectory' );
Also you can run a search and replace to search for all instances of your local url and replace them with your live url.
Zac Gordon
Treehouse Guest TeacherAre you using the non pro version of map? You may have to lookup how to remove the port numbers in mamp to resolve the situation.
Deepti Boddapati
3,236 PointsYes I am using the non-pro version but for windows since they have that now. Ok ill try that. I did define the new url in wp-config.