Title: Changing relative URL paths
Last modified: August 22, 2016

---

# Changing relative URL paths

 *  [Michael](https://wordpress.org/support/users/taloscent/)
 * (@taloscent)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/changing-relative-url-paths/)
 * I have a site that is being developed on [http://mysite.com/dev](http://mysite.com/dev)
 * If I use root relative paths like /page1 the the link takes me to [http://mysite.com](http://mysite.com)
   and not to [http://mysite.com/dev/page1](http://mysite.com/dev/page1).
 * Is there a way I can fix this while I am developing?

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

 *  [gabrielcastillo](https://wordpress.org/support/users/gabrielcastillo/)
 * (@gabrielcastillo)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/changing-relative-url-paths/#post-5342419)
 * you can try defining your url and paths within you config file..
 *     ```
       define('WP_HOME','http://example.com/dev');
       define('WP_SITEURL','http://example.com/dev');
       ```
   
 * Docs: [Documentation](http://codex.wordpress.org/Changing_The_Site_URL)
 *  Thread Starter [Michael](https://wordpress.org/support/users/taloscent/)
 * (@taloscent)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/changing-relative-url-paths/#post-5342432)
 * Under Settings|General these are already set.

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

The topic ‘Changing relative URL paths’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/taloscent/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/changing-relative-url-paths/#post-5342432)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
