<?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>Felixberto Baguyo Jr. &#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 Consultant &#38; Programmer from Roxas City, Capiz Philippines.</description>
	<lastBuildDate>Mon, 30 Aug 2010 14:57:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP Script to Reset WordPress URL</title>
		<link>http://www.bleuken.com/2008/07/30/php-script-reset-wordpress-url/</link>
		<comments>http://www.bleuken.com/2008/07/30/php-script-reset-wordpress-url/#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/2008/07/30/php-script-reset-wordpress-url/">PHP Script to Reset WordPress URL</a> is a post from: <a href="http://www.bleuken.com">Felixberto Baguyo Jr.</a></p>



Related posts:<ol><li><a href='http://www.bleuken.com/2009/10/21/upgraded-wordpress-2-8-5/' rel='bookmark' title='Permanent Link: Just Upgraded to WordPress 2.8.5'>Just Upgraded to WordPress 2.8.5</a></li>
<li><a href='http://www.bleuken.com/2009/09/27/wordpress-blogs-crawled/' rel='bookmark' title='Permanent Link: Why Your WordPress Blogs Are Not Crawled?'>Why Your WordPress Blogs Are Not Crawled?</a></li>
<li><a href='http://www.bleuken.com/2008/07/15/wordpress-26-now-available/' rel='bookmark' title='Permanent Link: WordPress 2.6 Now Available'>WordPress 2.6 Now Available</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.bleuken.com/2008/07/30/php-script-reset-wordpress-url/&amp;layout=standard&amp;show_faces=true&amp;width=260&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:260px; height:26px'></iframe></p><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/2008/07/30/php-script-reset-wordpress-url/">PHP Script to Reset WordPress URL</a> is a post from: <a href="http://www.bleuken.com">Felixberto Baguyo Jr.</a></p>


<p>Related posts:<ol><li><a href='http://www.bleuken.com/2009/10/21/upgraded-wordpress-2-8-5/' rel='bookmark' title='Permanent Link: Just Upgraded to WordPress 2.8.5'>Just Upgraded to WordPress 2.8.5</a></li>
<li><a href='http://www.bleuken.com/2009/09/27/wordpress-blogs-crawled/' rel='bookmark' title='Permanent Link: Why Your WordPress Blogs Are Not Crawled?'>Why Your WordPress Blogs Are Not Crawled?</a></li>
<li><a href='http://www.bleuken.com/2008/07/15/wordpress-26-now-available/' rel='bookmark' title='Permanent Link: WordPress 2.6 Now Available'>WordPress 2.6 Now Available</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bleuken.com/2008/07/30/php-script-reset-wordpress-url/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Object Caching 514/551 objects using disk

Served from: www.bleuken.com @ 2010-09-09 03:10:27 -->