{"id":285,"date":"2013-01-14T22:23:14","date_gmt":"2013-01-14T22:23:14","guid":{"rendered":"https:\/\/shan.info\/new\/wordpress-changing-the-site-url\/"},"modified":"2013-01-14T22:23:14","modified_gmt":"2013-01-14T22:23:14","slug":"wordpress-changing-the-site-url","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/wordpress-changing-the-site-url\/","title":{"rendered":"wordpress Changing The Site URL"},"content":{"rendered":"<p>\n\t&nbsp;<\/p>\n<h2 class=\"pagetitle\" style=\"margin: 0px 0px 24px; padding: 0px 0px 2px; font-family: sans-serif; font-size: 24px; color: rgb(102, 102, 102); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(218, 218, 218); line-height: 22px;\">\n\tChanging The Site URL<\/h2>\n<p class=\"LanguageLinks\" style=\"margin: 0px 0px 22px; padding: 10px; clear: left; font-family: sans-serif; border: 1px solid rgb(204, 204, 204); line-height: 1.5; color: rgb(51, 51, 51); font-size: 12px;\">\n\t<span style=\"font-size: 13px; line-height: 22px;\">On the Settings-&gt;General screen in a single site installation of WordPress, there are two fields named &#8220;WordPress address (URL)&#8221; and &#8220;Site address (URL)&#8221;. These are also known as the &#8220;Home&#8221; and &#8220;Site URL&#8221; settings. They are important settings, since they control where WordPress thinks your site is located. They control the display of the URL in the admin section of your page as well as the front end, and are used throughout the WordPress code.<\/span><\/p>\n<ul style=\"margin: 0px 0px 22px 16px; padding: 0px; list-style: square; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tThe &#8220;Home&#8221; setting is the address you want people to type in their browser to reach your WordPress blog.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tThe &#8220;Site URL&#8221; setting is the address where your WordPress core files reside.<\/li>\n<\/ul>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t<b>Note<\/b>: Both settings should include the http:\/\/ part and should not have a slash &#8220;\/&#8221; at the end.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tEvery once in a while, somebody finds a need to manually change (or fix) these settings. Usually this happens when they change one or both and discover that their site no longer works properly. This can leave the user with no easily discoverable way to correct the problem. This article tells you how to change these settings directly.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tAdditional information is presented here for the case where you are moving WordPress from one site to another, as this will also require changing the site URL. You should not attempt to use this additional information if you&#8217;re only attempting to correct a &#8220;broken&#8221; site.<\/p>\n<div style=\"margin: 0.5em auto; padding: 7px; font-size: 13px; font-family: sans-serif; line-height: 22px; clear: both; background-color: rgb(252, 236, 173); border: 1px solid rgb(204, 204, 204); vertical-align: middle;\">\n\t<strong>Alert!<\/strong>&nbsp;These directions are for single installs of WordPress only. If you are using WordPress MultiSite, you will need to manually edit your database.<\/div>\n<table class=\"toc\" id=\"toc\" style=\"margin: 0px 0px 12px 16px; padding: 4px 8px; background-color: rgb(241, 241, 241); border-style: solid; border-color: rgb(218, 218, 218); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; float: right; font-size: 12px; max-width: 30%; font-family: sans-serif; line-height: 22px;\" summary=\"Contents\">\n<tbody>\n<tr>\n<td style=\"margin: 0px; padding: 0px;\">\n<div id=\"toctitle\" style=\"margin: 0px; padding: 0px;\">\n<h2 style=\"margin: 0px 0px 10.4375px; padding: 0px; font-weight: normal; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(218, 218, 218);\">\n\t\t\t\t\t\tContents<\/h2>\n<p>\t\t\t\t\t<span class=\"toctoggle\">[<a class=\"internal\" href=\"\" id=\"togglelink\" style=\"color: rgb(76, 166, 207);\">hide<\/a>]<\/span><\/div>\n<ul style=\"margin: 0px 0px 0px 16px; padding: 0px; list-style: square;\">\n<li class=\"toclevel-1\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_the_Site_URL\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">1<\/span>&nbsp;<span class=\"toctext\">Changing the Site URL<\/span><\/a><\/p>\n<ul style=\"margin: 0px 0px 0px 16px; padding: 0px; list-style: square;\">\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Edit_wp-config.php\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">1.1<\/span>&nbsp;<span class=\"toctext\">Edit wp-config.php<\/span><\/a><\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Edit_functions.php\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">1.2<\/span>&nbsp;<span class=\"toctext\">Edit functions.php<\/span><\/a><\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Relocate_method\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">1.3<\/span>&nbsp;<span class=\"toctext\">Relocate method<\/span><\/a><\/p>\n<ul style=\"margin: 0px 0px 0px 16px; padding: 0px; list-style-position: initial; list-style-image: initial;\">\n<li class=\"toclevel-3\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Steps\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">1.3.1<\/span>&nbsp;<span class=\"toctext\">Steps<\/span><\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">1.4<\/span>&nbsp;<span class=\"toctext\">Changing the URL directly in the database<\/span><\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"toclevel-1\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Moving_Sites\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2<\/span>&nbsp;<span class=\"toctext\">Moving Sites<\/span><\/a><\/p>\n<ul style=\"margin: 0px 0px 0px 16px; padding: 0px; list-style: square;\">\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Altering_Table_Prefixes\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.1<\/span>&nbsp;<span class=\"toctext\">Altering Table Prefixes<\/span><\/a><\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_Template_Files\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.2<\/span>&nbsp;<span class=\"toctext\">Changing Template Files<\/span><\/a><\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_the_Config_file\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.3<\/span>&nbsp;<span class=\"toctext\">Changing the Config file<\/span><\/a><\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Verify_the_Profile\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.4<\/span>&nbsp;<span class=\"toctext\">Verify the Profile<\/span><\/a><\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_the_.htaccess_file\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.5<\/span>&nbsp;<span class=\"toctext\">Changing the .htaccess file<\/span><\/a><\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Additional_items_of_note\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.6<\/span>&nbsp;<span class=\"toctext\">Additional items of note<\/span><\/a><\/p>\n<ul style=\"margin: 0px 0px 0px 16px; padding: 0px; list-style-position: initial; list-style-image: initial;\">\n<li class=\"toclevel-3\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Important_GUID_Note\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.6.1<\/span>&nbsp;<span class=\"toctext\">Important GUID Note<\/span><\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"toclevel-2\" style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Multi-site_notes\" style=\"color: rgb(76, 166, 207);\"><span class=\"tocnumber\">2.7<\/span>&nbsp;<span class=\"toctext\">Multi-site notes<\/span><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t&nbsp;<\/p>\n<p>\n\t<a id=\"Changing_the_Site_URL\" name=\"Changing_the_Site_URL\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h2 style=\"margin: 22px 0px 11px; padding: 0px; font-weight: normal; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 25px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(218, 218, 218); line-height: 22px;\">\n\t<span class=\"mw-headline\">Changing the Site URL<\/span><\/h2>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tThere are four easy methods to change the Site URL manually. Any of these methods will work and perform much the same function.<\/p>\n<p>\n\t<a id=\"Edit_wp-config.php\" name=\"Edit_wp-config.php\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Edit wp-config.php<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIt is possible to set the site URL manually in the wp-config.php file.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tAdd these two lines to your wp-config.php, where &#8220;example.com&#8221; is the correct location of your site.<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">define('WP_HOME','<a class=\"external free\" href=\"http:\/\/example.com%27\/\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/example.com'\">http:\/\/example.com'<\/a>);\r\ndefine('WP_SITEURL','<a class=\"external free\" href=\"http:\/\/example.com%27\/\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/example.com'\">http:\/\/example.com'<\/a>);\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tThis is not necessarily the best fix, it&#8217;s just hardcoding the values into the site itself. You won&#8217;t be able to edit them on the General settings page anymore when using this method.<\/p>\n<p>\n\t<a id=\"Edit_functions.php\" name=\"Edit_functions.php\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Edit functions.php<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIf you have access to the site via&nbsp;<a href=\"http:\/\/codex.wordpress.org\/FTP_Clients\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"FTP Clients\">FTP<\/a>, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t1. FTP to the site, and get a copy of the active theme&#8217;s functions.php file. You&#8217;re going to edit it in a simple text editor (like notepad) and upload it back to the site.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t2. Add these two lines to the file, immediately after the initial &#8220;&lt;?php&#8221; line.<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">update_option('siteurl','<a class=\"external free\" href=\"http:\/\/example.com\/blog'\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/example.com\/blog'\">http:\/\/example.com\/blog'<\/a>);\r\nupdate_option('home','<a class=\"external free\" href=\"http:\/\/example.com\/blog'\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/example.com\/blog'\">http:\/\/example.com\/blog'<\/a>);\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tUse your own URL instead of example.com, obviously.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t3. Upload the file back to your site, in the same location. FileZilla offers a handy &#8220;edit file&#8221; function to do all of the above rapidly; if you can use that, do so.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t4. Load the login or admin page a couple of times. The site should come back up.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIf there is no functions.php file in the theme:<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tCreate a new text file called &#8220;functions.php&#8221;.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tEdit it with notepad, and add this text to it, using your own URL instead of example.com:<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">&lt;?php\r\nupdate_option('siteurl','<a class=\"external free\" href=\"http:\/\/example.com\/blog'\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/example.com\/blog'\">http:\/\/example.com\/blog'<\/a>);\r\nupdate_option('home','<a class=\"external free\" href=\"http:\/\/example.com\/blog'\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/example.com\/blog'\">http:\/\/example.com\/blog'<\/a>);\r\n?&gt;\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tUpload that to your theme directory, then proceed as stated above. Remove the file afterwards.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t&gt;&gt;&gt;<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tHere are some additional details that step you through transfering a LAN-based wordpress site into an externally accessible site as well enabling editing the wordpress site from inside the LAN.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tTwo important keys are router\/firewall modifications and the &#8220;wait 10+ minutes&#8221; after making the changes at the end.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t-using ssh to log into your server (nano is a server preinstalled text editor)<br \/>\n\t-$ nano \/var\/www\/books\/wp-content\/themes\/twentyeleven\/functions.php<br \/>\n\t-add lines just after &gt;php?<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">    update_option('siteurl','<a class=\"external free\" href=\"http:\/\/your.site.url:port\/yourblog'\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/your.site.url:port\/yourblog'\">http:\/\/your.site.url:port\/yourblog'<\/a>);\r\n    update_option('home','<a class=\"external free\" href=\"http:\/\/your.site.url:port\/yourblog'\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/your.site.url:port\/yourblog'\">http:\/\/your.site.url:port\/yourblog'<\/a>);\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t-refresh your web browser using your external site url<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">   <a class=\"external free\" href=\"http:\/\/your.site.url:port\/yourblog\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/your.site.url:port\/yourblog\">http:\/\/your.site.url:port\/yourblog<\/a>\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t-$ nano \/var\/www\/books\/wp-content\/themes\/twentyeleven\/functions.php<br \/>\n\t-remove those lines you just added (or comment them out)<br \/>\n\t-access your router (these steps are for pfSense, other routers should have similar settings to look for\/watch out for)<br \/>\n\t-add to firewall\/nat table a line like this<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">        wan\/tcp\/port\/LAN.server.IP\/80\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t-add to firewall\/rules table a line like this<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">        tcp\/*\/port\/LAN.server.IP\/port\/*\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t-uncheck the box at System\/advanced\/network address translation\/Disable NAT Reflection<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">       \"Disables the automatic creation of NAT redirect rules for access to your public IP addresses from within your internal networks. Note: Reflection only works on port forward type items and does not work for large ranges &gt; 500 ports.\"\r\n<\/pre>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tThen go do something for ten minutes and when you get back see if the external url<a class=\"external free\" href=\"http:\/\/your.site.url:port\/yourblog\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"http:\/\/your.site.url:port\/yourblog\">http:\/\/your.site.url:port\/yourblog<\/a>&nbsp;from a LAN browser brings the page up correctly.<\/p>\n<p>\n\t<a id=\"Relocate_method\" name=\"Relocate_method\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Relocate method<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tWordPress supports an automatic relocation method intended to be a quick assist to getting a site working when relocating a site from one server to another.<\/p>\n<p>\n\t<a id=\"Steps\" name=\"Steps\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h4 style=\"margin: 0px 0px 18px; padding: 0px 0px 4px; font-weight: normal; font-size: 17px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(218, 218, 218); font-family: Georgia, 'Times New Roman', Times, serif; line-height: 22px;\">\n\t<span class=\"mw-headline\">Steps<\/span><\/h4>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t1. Edit the&nbsp;<tt>wp-config.php<\/tt>&nbsp;file.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t2. After the &#8220;define&#8221; statements (just&nbsp;<i>before<\/i>&nbsp;the comment line that says &#8220;That&#8217;s all, stop editing!&#8221;), insert a new line, and type:&nbsp;<code style=\"font-family: Consolas, Monaco, 'Courier New', Courier, monospace; margin-bottom: 22px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;\">define('RELOCATE',true);<\/code><\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t3. Save your wp-config.php file.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t4. Open a web browser and manually point it to&nbsp;<tt>wp-login.php<\/tt>&nbsp;on the new server. For example, if your new site is at&nbsp;<tt><a class=\"external free\" href=\"http:\/\/www.mynewdomain.com\/\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"http:\/\/www.mynewdomain.com\">http:\/\/www.mynewdomain.com<\/a><\/tt>, then type&nbsp;<tt><a class=\"external free\" href=\"http:\/\/www.mynewdomain.com\/wp-login.php\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"http:\/\/www.mynewdomain.com\/wp-login.php\">http:\/\/www.mynewdomain.com\/wp-login.php<\/a><\/tt>&nbsp;into your browser&#8217;s address bar.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t5. Login as per normal.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t6. Look in your web browser&#8217;s address bar to verify that you have, indeed, logged in to the correct server. If this is the case, then in the Admin back-end, navigate to Settings &gt; General and verify that both the address settings are correct. Remember to Save Changes.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t7. Once this has been fixed, edit&nbsp;<tt>wp-config.php<\/tt>&nbsp;and either completely remove the line that you added (delete the whole line), comment it out (with&nbsp;<code style=\"font-family: Consolas, Monaco, 'Courier New', Courier, monospace; margin-bottom: 22px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;\">\/\/<\/code>) or change the&nbsp;<code style=\"font-family: Consolas, Monaco, 'Courier New', Courier, monospace; margin-bottom: 22px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;\">true<\/code>&nbsp;value to&nbsp;<code style=\"font-family: Consolas, Monaco, 'Courier New', Courier, monospace; margin-bottom: 22px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;\">false<\/code>&nbsp;if you think it&#8217;s likely you will be relocating again.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t<b>Note:<\/b>&nbsp;When the RELOCATE flag is set to true, the Site URL will be automatically updated to whatever path you are using to access the login screen. This will get the admin section up and running on the new URL, but it will not correct any other part of the setup. Those you will still need to alter manually.<\/p>\n<p>\n\t<a id=\"Changing_the_URL_directly_in_the_database\" name=\"Changing_the_URL_directly_in_the_database\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Changing the URL directly in the database<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIf you know how to access phpMyAdmin on your host, then you can edit these values directly to get you up and running again.<\/p>\n<ol style=\"margin: 0px 0px 22px 22px; padding: 0px; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t<a href=\"http:\/\/codex.wordpress.org\/Backing_Up_Your_Database\" style=\"color: rgb(76, 166, 207);\" title=\"Backing Up Your Database\">Backup your database<\/a>&nbsp;and save the copy off-site.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tLogin to&nbsp;<a href=\"http:\/\/codex.wordpress.org\/phpMyAdmin\" style=\"color: rgb(76, 166, 207);\" title=\"phpMyAdmin\">phpMyAdmin<\/a>.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tClick the link to your&nbsp;<b>Databases<\/b>.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tA list of your databases will appear. Choose the one that is your WordPress database.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tAll the tables in your database will appear on the screen.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tFrom the list, look for&nbsp;<b><tt>wp_options<\/tt><\/b>.&nbsp;<b>Note:<\/b>&nbsp;The table prefix of&nbsp;<tt>wp_<\/tt>&nbsp;may be different if you changed it when installing.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tClick on the small icon indicated as&nbsp;<b>Browse<\/b>.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tA screen will open with a list of the fields within the&nbsp;<b><tt>wp_options<\/tt><\/b>&nbsp;table.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tUnder the field&nbsp;<b><tt>option_name<\/tt><\/b>, scroll down and look for&nbsp;<b><tt>siteurl<\/tt><\/b>.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tClick the&nbsp;<b>Edit Field<\/b>&nbsp;icon which usually is found at the far left at the beginning of the row.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tThe&nbsp;<b>Edit Field<\/b>&nbsp;window will appear.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tIn the input box for&nbsp;<b><tt>option_value<\/tt><\/b>, carefully change the URL information to the new address.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tVerify this is correct and click&nbsp;<b>Go<\/b>&nbsp;to save the information.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tYou should be returned to your&nbsp;<b><tt>wp_options<\/tt><\/b>&nbsp;table.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tLook for the&nbsp;<b><tt>home<\/tt><\/b>&nbsp;field in the table and click&nbsp;<b>Edit Field<\/b>.&nbsp;<b>Note<\/b>&nbsp;There are several pages of tables inside<tt>wp_options<\/tt>. Look for the&nbsp;<tt>&gt;<\/tt>&nbsp;symbol to page through them.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tIn the input box for&nbsp;<b><tt>option_value<\/tt><\/b>, carefully change the URL information to the new address.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tVerify this is correct and click&nbsp;<b>Go<\/b>&nbsp;to save the information.<\/li>\n<\/ol>\n<p>\n\t<a id=\"Moving_Sites\" name=\"Moving_Sites\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h2 style=\"margin: 22px 0px 11px; padding: 0px; font-weight: normal; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 25px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(218, 218, 218); line-height: 22px;\">\n\t<span class=\"mw-headline\">Moving Sites<\/span><\/h2>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tWhen moving sites from one location to another, it is sometimes necessary to manually modify data in the database to make the new site URL information to be recognized properly. Many tools exist to assist with this, and those should generally be used instead of manual modifications.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tThis is presented here as information only. This data may not be complete or accurate.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tYou should read the&nbsp;<a href=\"http:\/\/codex.wordpress.org\/Moving_WordPress\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Moving WordPress\">Moving WordPress<\/a>&nbsp;article first, if attempting to move WordPress from one system to another.<\/p>\n<p>\n\t<a id=\"Altering_Table_Prefixes\" name=\"Altering_Table_Prefixes\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Altering Table Prefixes<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tLike many WordPress administrators, you may be running several WordPress installations off of one database using various&nbsp;<tt>wp-config.php<\/tt>&nbsp;hacks. Many of these hacks involve dynamically setting table prefixes, and if you do end up altering your table prefix, you&nbsp;<i>must<\/i>&nbsp;update several entries within the&nbsp;<i>prefix_<\/i>usermeta table as well.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tAs in the above section, remember that SQL changes are permanent and so you should back up your database first:<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIf you are changing table prefixes for a site, then remember to alter the table prefix in the usermeta tables as well. This will allow the new site to properly recognize user permissions from the old site.<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">UPDATE `newprefix_usermeta` SET `meta_key` = REPLACE( `meta_key` , 'oldprefix_', 'newprefix_' );<\/pre>\n<p>\n\t<a id=\"Changing_Template_Files\" name=\"Changing_Template_Files\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Changing Template Files<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIn your&nbsp;<a href=\"http:\/\/codex.wordpress.org\/Using_Themes\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Using Themes\">WordPress Theme<\/a>, open each template file and search for any manually entered references to your old domain name and replace it with the new one. Look for specific hand coded links you may have entered on the various template files such as the&nbsp;<tt>sidebar.php<\/tt>&nbsp;and&nbsp;<tt>footer.php<\/tt>.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tWordPress uses a template tag called&nbsp;<tt><a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Template_Tags\/bloginfo\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Template Tags\/bloginfo\">bloginfo()<\/a><\/tt>&nbsp;to automatically generate your site address from information entered in your&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Administration_Panels\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Administration Panels\">Administration<\/a>&nbsp;&gt;&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Administration_Panels#General\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Administration Panels\">Settings<\/a>&nbsp;&gt;&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Settings_General_SubPanel\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Settings General SubPanel\">General<\/a>&nbsp;panel. The tag in your template files will not have to be modified.<\/p>\n<p>\n\t<a id=\"Changing_the_Config_file\" name=\"Changing_the_Config_file\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Changing the Config file<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tYou will need to update your WordPress configuration file if your database has moved or changed in certain ways.<\/p>\n<ol style=\"margin: 0px 0px 22px 22px; padding: 0px; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tYou will only need to modify the config file if:<\/p>\n<ol style=\"margin: 0px 0px 22px 22px; padding: 0px;\">\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\tyour database has moved to another server and is not running on your&nbsp;<tt>localhost<\/tt><\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\tyou have renamed your database<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t\t\tyou have changed the database user name<\/li>\n<\/ol>\n<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t&#8220;&#8216;Make a backup copy of your&nbsp;<tt>wp-config.php<\/tt>&nbsp;file.'&#8221;<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tOpen the&nbsp;<tt>wp-config.php<\/tt>&nbsp;file in a&nbsp;<a href=\"http:\/\/codex.wordpress.org\/Glossary#Text_editor\" style=\"color: rgb(76, 166, 207);\" title=\"Glossary\">text editor<\/a>.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tReview its contents. In particular, you are looking for the&nbsp;<a class=\"external text\" href=\"http:\/\/codex.wordpress.org\/Editing_wp-config.php#Database_host\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/codex.wordpress.org\/Editing_wp-config.php#Database_host\">database host entry<\/a>.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tSave the file.<\/li>\n<\/ol>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tAt this point, your WordPress blog should be working.<\/p>\n<p>\n\t<a id=\"Verify_the_Profile\" name=\"Verify_the_Profile\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Verify the Profile<\/span><\/h3>\n<ol style=\"margin: 0px 0px 22px 22px; padding: 0px; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tIn your&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Administration_Panels\" style=\"color: rgb(76, 166, 207);\" title=\"Administration Panels\">Administration Panels<\/a>&nbsp;go to&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Administration_Panels#General\" style=\"color: rgb(76, 166, 207);\" title=\"Administration Panels\">Settings<\/a>&nbsp;&gt;&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Settings_General_SubPanel\" style=\"color: rgb(76, 166, 207);\" title=\"Settings General SubPanel\">General<\/a>&nbsp;. Here you will verify that the changes you made in<a class=\"external text\" href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_the_URL\" style=\"color: rgb(76, 166, 207);\" title=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_the_URL\">Changing the URL<\/a>&nbsp;above, are correct.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tVerify that the reference in your&nbsp;<b>WordPress URL<\/b>&nbsp;contains the new address.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tVerify that the reference in your &#8220;Blog URL&#8221; contains the new address.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tIf you have made changes, click&nbsp;<b>Save Changes<\/b>.<\/li>\n<\/ol>\n<p>\n\t<a id=\"Changing_the_.htaccess_file\" name=\"Changing_the_.htaccess_file\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Changing the .htaccess file<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tAfter changing the information in your&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Administration_Panels\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Administration Panels\">Administration<\/a>&nbsp;&gt;&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Administration_Panels#General\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Administration Panels\">Settings<\/a>&nbsp;&gt;&nbsp;<a class=\"mw-redirect\" href=\"http:\/\/codex.wordpress.org\/Settings_General_SubPanel\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Settings General SubPanel\">General<\/a>&nbsp;panel, you will need to update your<tt>.htaccess<\/tt>&nbsp;file if you are using&nbsp;<a href=\"http:\/\/codex.wordpress.org\/Using_Permalinks\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Using Permalinks\">Permalinks<\/a>&nbsp;or any rewrites or redirects.<\/p>\n<ol style=\"margin: 0px 0px 22px 22px; padding: 0px; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\t<b>Make a backup copy of your&nbsp;<tt>.htaccess<\/tt>&nbsp;file.<\/b>&nbsp;This is not a recommendation but a requirement.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tOpen the&nbsp;<tt>.htaccess<\/tt>&nbsp;file in a&nbsp;<a href=\"http:\/\/codex.wordpress.org\/Glossary#Text_editor\" style=\"color: rgb(76, 166, 207);\" title=\"Glossary\">text editor<\/a>.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tReview its contents, looking for any custom rewrites or redirects you entered.&nbsp;<b>Copy<\/b>&nbsp;these to another text file for safe keeping.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tClose the file.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tFollow the instructions on the Permalinks SubPanel for updating your Permalinks to the&nbsp;<tt>.htaccess<\/tt>&nbsp;file.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tOpen the new&nbsp;<tt>.htaccess<\/tt>&nbsp;file and check to see if your custom rewrites and redirects are still there. If not, copy them from the saved file and paste them into the new&nbsp;<tt>.htaccess<\/tt>&nbsp;file.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tMake any changes necessary in those custom rewrites and redirects to reflect the new site address.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tSave the file.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tTest those redirects to ensure they are working.<\/li>\n<\/ol>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIf you make a mistake, you can&nbsp;<a href=\"http:\/\/codex.wordpress.org\/Restoring_Your_Database_From_Backup\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"Restoring Your Database From Backup\">Restoring Your Database From Backup<\/a>&nbsp;from your backup and try this again. So make sure it is right the first time.<\/p>\n<p>\n\t<a id=\"Additional_items_of_note\" name=\"Additional_items_of_note\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h3 style=\"margin: -1px 0px 4px; padding: 0px 0px 4px; font-weight: normal; font-size: 20px; font-family: Georgia, 'Times New Roman', Times, serif; border-bottom-width: 1px; border-bottom-style: solid; border-color: rgb(238, 238, 238); line-height: 22px;\">\n\t<span class=\"mw-headline\">Additional items of note<\/span><\/h3>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tThere are other things you may wish to change in order to correct URLs when moving sites.<\/p>\n<ol style=\"margin: 0px 0px 22px 22px; padding: 0px; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tImages link: image links are stored in &#8220;post_content&#8221; in the wp_posts table. You can use the similar code above to update image links.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\twp_options: Besides the &#8220;siteurl&#8221; and &#8220;home&#8221; items mentioned above, there are other option_value which also need revision, such as &#8220;upload path&#8221;, and some plugin items (depends on what you&#8217;ve installed, such as widgets, stats, DMSGuestbook, sitemap, etc.)<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tDo a FULL database search for any items left. MAKE SURE you know what you are changing. and go through each item for possible improper replacement.<\/li>\n<li style=\"margin: 0px; padding: 0px; text-align: left !important;\">\n\t\tIf you a running a network \/ have multiple sites, you will need to replace instances of the URL in the database. They are stored in many tables, including each one of the sites (blogs). Be careful in what you replace and be sure you know the meaning of the field before changing it. See the Important GUID note below for an example of what&nbsp;<i>not<\/i>&nbsp;to change.<\/li>\n<\/ol>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t<a class=\"external text\" href=\"http:\/\/wphacks.com\/how-to-move-wordpress-blog-new-domain-name\/\" style=\"color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223);\" title=\"http:\/\/wphacks.com\/how-to-move-wordpress-blog-new-domain-name\/\">How To: Move Your WordPress Blog to a New Domain<\/a>&nbsp;&#8211; Using the Export\/Import feature to move a blog to a new domain<\/p>\n<p>\n\t<a id=\"Important_GUID_Note\" name=\"Important_GUID_Note\" style=\"color: rgb(33, 117, 155); font-family: sans-serif; font-size: 13px; line-height: 22px;\"><\/a><\/p>\n<h4 style=\"margin: 0px 0px 18px; padding: 0px 0px 4px; font-weight: normal; font-size: 17px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(218, 218, 218); font-family: Georgia, 'Times New Roman', Times, serif; line-height: 22px;\">\n\t<span class=\"mw-headline\">Important GUID Note<\/span><\/h4>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tWhen doing the above and changing the URLs directly in the database, you will come across instances of the URL being located in the &#8220;guid&#8221; column in the wp_posts tables.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t<b>It is critical that you do&nbsp;<i>NOT<\/i>&nbsp;change the contents of this field.<\/b><\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tThe term &#8220;GUID&#8221; stands for &#8220;Globally Unique Identifier&#8221;. It is a field that is intended to hold an identifier for the post which a) is unique across the whole of space and time and b) never, ever changes. The GUID field is primarily used to create the WordPress feeds.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tWhen a feed-reader is reading feeds, it uses the contents of the GUID field to know whether or not it has displayed a particular item before. It does this in one of various ways, but the most common method is simply to store a list of GUID&#8217;s that it has already displayed and &#8220;marked as read&#8221; or similar.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tThus, changing the GUID will mean that many feedreaders will suddenly display your content in the user&#8217;s reader again as if it was new content, possibly annoying your users.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tIn order for the GUID field to be &#8220;globally&#8221; unique, it is an accepted convention that the URL or some representation of the URL is used. Thus, if you own example.com, then you&#8217;re the only one using example.com and thus it&#8217;s unique to you and your site. This is why WordPress uses the permalink, or some form thereof, for the GUID.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\tHowever, the second part of that is that the GUID must&nbsp;<i>never<\/i>&nbsp;change. Even if you shift domains around, the post is still the same post, even in a new location. Feed readers being shifted to your new feeds when you change URLs should still know that they&#8217;ve read some of your posts before, and thus the GUID&nbsp;<b>must<\/b>&nbsp;remain unchanged.<\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t<b>Never, ever, change the contents of the GUID column, under any circumstances.<\/b><\/p>\n<p style=\"margin: 0px 0px 22px; padding: 0px; clear: left; font-family: sans-serif; font-size: 13px; line-height: 22px;\">\n\t<b>One exception is attachment media:<\/b>&nbsp;Attachment media locations are stored as a URL in the GUID. If the default uploads folder needs to be changed to a different location, then the media URL will need to be changed in the&nbsp;<b>post_content<\/b>&nbsp;and&nbsp;<b>guid<\/b>&nbsp;columns of the posts table. For example, if the default uploads folder is changing from&nbsp;<b>wp-content\/uploads<\/b>&nbsp;to&nbsp;<b>images<\/b>:<\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">UPDATE wp_posts SET post_content = REPLACE(post_content,'www.domain.com\/wp-content\/uploads','www.domain.com\/images');<\/pre>\n<pre style=\"margin-top: 0px; margin-bottom: 22px; padding: 11px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; background-color: rgb(243, 243, 247); border: 1px solid rgb(222, 222, 227); font-size: 12px; line-height: 1.3em; overflow: auto; white-space: pre-wrap; word-wrap: break-word;\">UPDATE wp_posts SET guid = REPLACE(guid,'www.domain.com\/wp-content\/uploads','www.domain.com\/images');<\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Changing The Site URL On the Settings-&gt;General screen in a single site installation of WordPress, there are two fields named &#8220;WordPress address (URL)&#8221; and &#8220;Site address (URL)&#8221;. These are also known as the &#8220;Home&#8221; and &#8220;Site URL&#8221; settings. They are important settings, since they control where WordPress thinks your site is located. They control [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}