This question has been asked many many times before.
Here’s the Codex: http://codex.wordpress.org/Changing_The_Site_URL
The easiest thing to do is add a couple of lines to your wp-config.php
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Related Posts:
- How to Create a Custom WordPress Install Package?
- Fallback when Transient API fails
- How to remove “http://” When Echoing URL?
- How to Save Different Settings Options Using Settings API and/or the Theme Optimizer
- Best practice differences in DB options and wp-config between live, staging and local WordPress environments?
- Logout redirects to a broken page(home URL is omitted)
- I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?
- wp-config dynamic hostname in WP_HOME and WP_SITEURL
- Can’t save checkbox option
- Work flow for multiple developers
- wp_options siteurl and home hardcoded?
- Functions to edit wp-config.php [duplicate]
- Cannot save using register_setting
- Redirect to another page using contact form 7? [closed]
- Block properties, attributes and settings
- Cannot access WordPress website from external IP while internally it is working properly [closed]
- Site Address and WordPress Address settings when using a load balancer
- How can I clear memcached WordPress site options by hand?
- Change of “home” results in timeouts (only on index.php)
- The issue of redirecting my site to a new domain
- How to pass variable to add_settings_section() callback?
- Difference between Option_Group and Option_Name in Register_Settings
- Why does WordPress use serialize rather than json_encode for the options table? [duplicate]
- Plugin options will not save in database
- Settings API – creating reusable form elements?
- Difference between bloginfo(‘home’) and home_url() and site_url()
- store simple data in get_option()
- register_setting() vs add_option()
- Where to hook register_settings for Settings API when also want to update options outside of Settings API?
- How much string content can I store in an option?
- Override Current Theme Setting in wp_config.php
- How to update widget from widget() function?
- Why isn’t get_option array contents displaying?
- Add custom meta box on Post page
- Settings API erases itself?
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- Proper use of option_page_capability_{$page_name}
- Preferred Use of home_url()?
- On Install, which code sets the ‘home’ option?
- Can I use a space in an option name/key?
- How to verify this checkbox is checked?
- Settings API get_option best practices
- Deploy pre-configured database
- Tab from Settings API resetting all options with INSERT INTO [closed]
- Remove site root trailing slash
- display all posts in wordpress admin crashing after 999 screen option
- Multisite Network menu links not updating
- Add an option to a Child theme of Twenty Eleven
- Not Found (404) error on admin page, CSS gone on blog
- The Settings API – What is the purpose of default value in register_setting?
- How to store a value on WP_option table
- Split Conference WordPress Page in different years
- Two settings_fields in one form
- Custom blog settings
- wp_usermeta wp_usersettings
- WordPress slugs and 404 handling takes preference over folders in site root?
- How to set wp_editor to be email friendly?
- ERR_TOO_MANY_REDIRECTS when i config my subdomains
- WordPress site isn’t reachable after site & home URL modification
- i changed my wordpress address url in SETTINGS – GENRERAL – wordpress address site url. cannot login anymore
- update object options on option form
- get_template_directory_uri not dependent on WP_HOME in wp-config.php?
- Transients API conditional
- How to use a newly registered setting with a checkbox and the default value ‘true’
- help using get_option
- How to check False booleans when using get_option?
- Is there any other place – besides a theme, a plugin, or a mu-plugin – that an option page might conceivably be used?
- Verify Values Using Settings API
- Change the style of h1, h2, only in post entry
- Which Hook can I use when creating unique post but not update/save/delete
- How to use update_option() without replacing/losing the old value?
- Settings API and ‘type’ => ‘font’
- Options page: values don’t show up in dashboard
- WordPress Settings API settings not saving for some users
- Character \ appearing before ‘ after saving a settings page
- How to add a Reset to Defaults button with Settings API?
- PHP class to add pages and fields in admin panel
- get_option() and update_option() in a transaction (for an autoincrement value)
- How to change color of a word in text after WP update
- display category name based on its equivalent id
- How to stage a redesigned site on a new webhost while the original site is still live? [closed]
- How do I make mysite.com/comingsoon WordPress to become my main website’s WordPress?
- Is it possible to have a global parameter page which allows to configure other plugins in the same place?
- Encoding matter – ? instead of € after settings field callback
- Domain not redirected correctly with WordPress Multisite
- How to have differents sites share the same tables of DB?
- How to Fix WordPress Not Saving Settings?
- Update siteurl and home in multisite subsites to https
- Echo custom admin field into a is_single()
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- add image in dropdown select
- AJAX save options inside class
- Dynamically Update Key in Associative Array When Saving Settings
- Incorporating the Settings API in WordPress Themes – by Chip Bennet
- WordPress options text format
- Caching of SQL queries
- Only show theme option if it option exists
- Custom general settings (textarea field) don’t output HTML correctly
- Using get_option() for check box field
- Where to adjust presets for slider options “auto rotate” (3, 5, 10, 15 seconds)? [closed]