<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bleuken.com &#187; Blog URL</title>
	<atom:link href="http://www.bleuken.com/tag/blog-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bleuken.com</link>
	<description>SEO, Programming, Gadgets, Boxing, Etc.</description>
	<lastBuildDate>Sun, 15 Jan 2012 12:16:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP Script to Reset WordPress URL</title>
		<link>http://www.bleuken.com/php-script-reset-wordpress-url-20080730/</link>
		<comments>http://www.bleuken.com/php-script-reset-wordpress-url-20080730/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 14:52:54 +0000</pubDate>
		<dc:creator>bleuken</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Blog URL]]></category>
		<category><![CDATA[Wordpress URL]]></category>

		<guid isPermaLink="false">http://www.bleuken.com/?p=172</guid>
		<description><![CDATA[Are you looking for a PHP script that can reset the WordPress Address (URL) of your blog? or Did you accidentally change the settings of the Blog Address (URL) from General settings then you were not able to access your blog because of this modification that you made? Now to solve my problem, I have [...]<p><a href="http://www.bleuken.com/php-script-reset-wordpress-url-20080730/">PHP Script to Reset WordPress URL</a> is a post from: <a href="http://www.bleuken.com">Bleuken.com</a></p>



Related posts:<ol><li><a href='http://www.bleuken.com/speeding-up-your-site-loading-ads-script-last-20101101/' rel='bookmark' title='Speeding Up Your Site: Loading Ads Script Last'>Speeding Up Your Site: Loading Ads Script Last</a></li>
<li><a href='http://www.bleuken.com/wordpress-blogs-crawled-20090927/' rel='bookmark' title='Why Your WordPress Blogs Are Not Crawled?'>Why Your WordPress Blogs Are Not Crawled?</a></li>
<li><a href='http://www.bleuken.com/wordpress-26-now-available-20080715/' rel='bookmark' title='WordPress 2.6 Now Available'>WordPress 2.6 Now Available</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Are you looking for a PHP script that can reset the WordPress Address (URL) of your blog? or Did you accidentally change the settings of the Blog Address (URL) from General settings then you were not able to access your blog because of this modification that you made?</p>
<p style="text-align: center;"><img class="size-full wp-image-173 aligncenter" title="Wordpress Adress URL" src="http://www.bleuken.com/wp-content/uploads/2008/07/wordpress-address-url.jpg" alt="Wordpress Adress URL" width="465" height="79" /></p>
<p style="text-align: left;">Now to solve my problem, I have prepared a PHP script to reset it to my original blog settings. Here’s the PHP script for the WordPress address URL reset that I used:</p>
<address style="text-align: left;">&lt;?php<br />
$dbhost = ‘localhost’;<br />
$dbuser = ‘<span style="text-decoration: underline;">user_name’</span>;<br />
$dbpass = ‘<span style="text-decoration: underline;">password</span>‘;<br />
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die(’Error connecting to mysql’);<br />
$dbname = ‘databasename’;<br />
mysql_select_db($dbname);<br />
$query  = “UPDATE wp_options SET option_value = ‘<span style="text-decoration: underline;">http://www.urdomain.com</span>‘ WHERE `wp_options`.`option_id` =1 AND `wp_options`.`blog_id` =0 AND CONVERT( `wp_options`.`option_name` USING utf8 ) = ’siteurl’ LIMIT 1 ;”;<br />
$result = mysql_query($query);<br />
$query = “UPDATE wp_options SET option_value = ‘<span style="text-decoration: underline;">http://www.urdomain.com’</span> WHERE `wp_options`.`option_id` =39 AND `wp_options`.`blog_id` =0 AND CONVERT( `wp_options`.`option_name` USING utf8 ) = ‘home’ LIMIT 1 ;”;<br />
$result = mysql_query($query);<br />
mysql_close($conn);<br />
?&gt;</address>
<p style="text-align: left;">You can download the whole script here: <a rel="nofollow, noindex" href="http://www.bleuken.com/downloads/reseturl.txt">reseturl.txt</a> and modify the portion (<em>underlined option above</em>) that is applicable to your site. Rename the file to <span style="text-decoration: underline;"><strong>reseturl.php</strong></span> then upload it to your website. Execute it and that’s all it will reset the WordPress Address (URL) and Blog Address (URL) to appropriate URL.</p>
<p style="text-align: left;">I hope this script will solve your WordPress problem.</p>
<p><a href="http://www.bleuken.com/php-script-reset-wordpress-url-20080730/">PHP Script to Reset WordPress URL</a> is a post from: <a href="http://www.bleuken.com">Bleuken.com</a></p>


<p>Related posts:<ol><li><a href='http://www.bleuken.com/speeding-up-your-site-loading-ads-script-last-20101101/' rel='bookmark' title='Speeding Up Your Site: Loading Ads Script Last'>Speeding Up Your Site: Loading Ads Script Last</a></li>
<li><a href='http://www.bleuken.com/wordpress-blogs-crawled-20090927/' rel='bookmark' title='Why Your WordPress Blogs Are Not Crawled?'>Why Your WordPress Blogs Are Not Crawled?</a></li>
<li><a href='http://www.bleuken.com/wordpress-26-now-available-20080715/' rel='bookmark' title='WordPress 2.6 Now Available'>WordPress 2.6 Now Available</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bleuken.com/php-script-reset-wordpress-url-20080730/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Object Caching 605/652 objects using disk: basic

Served from: www.bleuken.com @ 2012-02-04 12:22:03 -->
