Title: WP persists on using wrong port
Last modified: August 21, 2016

---

# WP persists on using wrong port

 *  [tobik999](https://wordpress.org/support/users/tobik999/)
 * (@tobik999)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wp-persists-on-using-wrong-port/)
 * After moving WP from local installation (which used port 8081) to live domain(
   which obviously uses port 80) it still redirects to example.com:8081 instead 
   of simply opening example.com.
    WTH? Can somebody tell how to get this running.
   I already applied the necessary changes to wp_options table (Base and Home), 
   also tried to hardcode it into the wp-config file. Both did not change anything.
   Is there a cache file or something which still uses the old port number?

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

 *  Thread Starter [tobik999](https://wordpress.org/support/users/tobik999/)
 * (@tobik999)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wp-persists-on-using-wrong-port/#post-3764034)
 * backend works properly, but wth does the frontend stil redirect to the wrong 
   port?
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wp-persists-on-using-wrong-port/#post-3764035)
 * > After moving WP from local installation
 * How did you perform the move? You may need to do a search and replace in your
   database and modify all `example.com:8081` references to just `example.com` (
   less the 8081).
 * See this Codex article for what I mean.
 * [http://codex.wordpress.org/Moving_WordPress#Moving_to_a_New_Server](http://codex.wordpress.org/Moving_WordPress#Moving_to_a_New_Server)
 *  Thread Starter [tobik999](https://wordpress.org/support/users/tobik999/)
 * (@tobik999)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wp-persists-on-using-wrong-port/#post-3764037)
 * UI what a pain, I have to change all the guid manually. I really do not understand
   why WP needs the whole path as unique identfier.
 *  Thread Starter [tobik999](https://wordpress.org/support/users/tobik999/)
 * (@tobik999)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wp-persists-on-using-wrong-port/#post-3764043)
 * I changed also all the db entries from example.com:8081 to example.com using 
   the search and replace script, but it is still redirecting to the old port# :
   S
 *  [Ryan Street](https://wordpress.org/support/users/ryanstreet/)
 * (@ryanstreet)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wp-persists-on-using-wrong-port/#post-3764139)
 * Is your base URL inside your settings setup to use the port as well?
 * Under Settings->General, make sure your WordPress Address and site address do
   not use the custom port.

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

The topic ‘WP persists on using wrong port’ is closed to new replies.

## Tags

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

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 5 replies
 * 3 participants
 * Last reply from: [Ryan Street](https://wordpress.org/support/users/ryanstreet/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/wp-persists-on-using-wrong-port/#post-3764139)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
