Title: localhost to web; page ID changes
Last modified: August 20, 2016

---

# localhost to web; page ID changes

 *  [Anon](https://wordpress.org/support/users/jeffpannone/)
 * (@jeffpannone)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/localhost-to-web-page-id-changes/)
 * I’m trying to streamline my wordpress development from localhost to the web. 
   currently my process is to build locally, then upload to an authenticated url“
   dev.domain.com” for testing/tweaking with client, then push to “domain.com” for
   the launch.
 * When I push from my local server to web, I export/import pages so to retain any
   Page ID’s and ultimately save myself a headache where I’d be updating any relative
   PHP/CSS.
 * The problem I’m seeing is that sometimes Page ID’s change. I’m thinking it has
   something to do with creating a page, then deleting it and throwing off the ID’s
   in the WP database? I’m not really certain, but I’d love some advice on this 
   technique and if there are better ways of doing it.
 * Thanks!

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

 *  [Darin Kotter](https://wordpress.org/support/users/dkotter/)
 * (@dkotter)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/localhost-to-web-page-id-changes/#post-2434226)
 * What I do when going from local to the web, is I not only export all my content
   from WordPress, but I’ll also export my entire database, using phpMyAdmin. Then
   when you set up the database on the web, use that export to create the new database.
   Then set up your web install of WordPress. There are a few things you’ll need
   to change in the database. WordPress saves your URL in a couple places in the
   options table.
 * You’ll need to change the siteurl, which is usually the first entry in that table,
   and then the home setting, which is around 37th in that table.
 * And then your links to media might be messed up, so there’s a really nice plugin
   called [Velvet Blues Update URLs](http://wordpress.org/extend/plugins/velvet-blues-update-urls/)
   which will update your URLs from your old site to your new one.
 *  Thread Starter [Anon](https://wordpress.org/support/users/jeffpannone/)
 * (@jeffpannone)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/localhost-to-web-page-id-changes/#post-2434456)
 * this makes sense. velvet blue will save quite a bit of time. thanks.
 * I have another workflow question you might be able to answer…
 * I setup all my client sites in this format [htdocs/client_com] and use the URL“
   [http://localhost/client_com/&#8221](http://localhost/client_com/&#8221); for
   developing. however, this forces me to use absolute paths for navigation as wordpress
   is looking in the root [htdocs/].
 * I want to set it up so that I can use the relative paths in my wordpress/php 
   files (i.e. “/” for home, “/blog” for blog page, etc..), but maintain my development
   server structure. This isn’t a huge issue, but it would make the file management/
   going live process a bit easier.
 * I’m curious if there is an easy workaround. If you have any advice, I’d love 
   to hear it.
 * Thanks!

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

The topic ‘localhost to web; page ID changes’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Anon](https://wordpress.org/support/users/jeffpannone/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/localhost-to-web-page-id-changes/#post-2434456)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
