Title: Wrong URL in posts
Last modified: August 19, 2016

---

# Wrong URL in posts

 *  [bid19123](https://wordpress.org/support/users/bid19123/)
 * (@bid19123)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wrong-url-in-posts/)
 * I have two website domains hosted on a single go daddy hosting account.
 * The primary domain is [http://www.moonbaycondos.org](http://www.moonbaycondos.org)
   
   The secondary domain is [http://www.aegyptiblog.info](http://www.aegyptiblog.info)
   and it is hosted on a sub-directory of the root host called aegypti
 * If I go to [http://aegyptiblog.info](http://aegyptiblog.info) I get to the homepage
   of my WordPress blog and the correct address appears in the URL. However when
   I log in or go to a page posting the correct page appears but with the incorrect
   address. The address starts of with [http://www.moonbaycondos.org/aegypti](http://www.moonbaycondos.org/aegypti).
 * The go daddy helpdesk informed me that I have set my domains up correctly on 
   their server and the problem is with WordPress. Any help would be greatly appreciated.
 * Regards
 * Alan

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [bid19123](https://wordpress.org/support/users/bid19123/)
 * (@bid19123)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wrong-url-in-posts/#post-2074546)
 * I have now further complicated the problem by altering the settings of the website
   in order to try and fix the problem. I altered the path from http//moonbaycondos.
   org/aegypti to http//aegypti and now cant access the dashboard or any page other
   than the main!
 * Please help
 * Thanks
 * Alan
 *  [smgrundy](https://wordpress.org/support/users/smgrundy/)
 * (@smgrundy)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wrong-url-in-posts/#post-2074745)
 * You can go into your database and make sure that the Home and Siteurl are correct.
   If you are not comfortable with browsing and editing the database directly, then
   you can try the suggestion below, which may help get the site back up so that
   you can correct it the “right way”.
 * Either through an FTP client, or your GoDaddy file manager, locate the wp-config.
   php file (in the root directory of your WordPress installation). Inside that 
   file, add the following two lines to the bottom of that file.`
 *     ```
       define( 'WP_HOME', 'http://www.yourpath.com' );
       define( 'WP_SITEURL', 'http://www.yourpath.com' );
       ```
   
 * Once you have that set, you should then be able to access the dashboard of the
   admin area. Ideally, you should make this change in the database, because once
   you make the change in the wp-config.php file, the option fields inside the admin
   dashboard will be disabled. If you choose to edit the file rather than edit the
   db, just make sure that you change the file manually should your path change 
   in the future.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong URL in posts’ is closed to new replies.

## Tags

 * [url incorrect](https://wordpress.org/support/topic-tag/url-incorrect/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [smgrundy](https://wordpress.org/support/users/smgrundy/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/wrong-url-in-posts/#post-2074745)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
