<?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>Snippet Archives - Nicholas Rowe</title>
	<atom:link href="https://www.nicholas-rowe.com/tag/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.nicholas-rowe.com/tag/snippet/</link>
	<description>CEO &#38; Co-Founder - Saigon Digital</description>
	<lastBuildDate>Wed, 03 Aug 2016 21:11:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.nicholas-rowe.com/wp-content/uploads/2025/12/cropped-nick-whitebg-e1765901896660-32x32.png</url>
	<title>Snippet Archives - Nicholas Rowe</title>
	<link>https://www.nicholas-rowe.com/tag/snippet/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Quick snippet to change all instances of WordPress URL</title>
		<link>https://www.nicholas-rowe.com/quick-snippet-to-change-all-instances-of-wordpress-url/</link>
					<comments>https://www.nicholas-rowe.com/quick-snippet-to-change-all-instances-of-wordpress-url/#respond</comments>
		
		<dc:creator><![CDATA[Nicholas Rowe]]></dc:creator>
		<pubDate>Wed, 03 Aug 2016 21:11:40 +0000</pubDate>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[Snippet]]></category>
		<guid isPermaLink="false">http://nicholas-rowe.com/?p=358</guid>

					<description><![CDATA[<p>Sometimes you are moving a websites folder structure, or sometimes you are moving a website hosts. This quick and easy sql script will allow you to update all instances of the current URL with a new URL so moving wordpress sites is painless. &#160; UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = [&#8230;]</p>
<p>The post <a href="https://www.nicholas-rowe.com/quick-snippet-to-change-all-instances-of-wordpress-url/">Quick snippet to change all instances of WordPress URL</a> appeared first on <a href="https://www.nicholas-rowe.com">Nicholas Rowe</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes you are moving a websites folder structure, or sometimes you are moving a website hosts. This quick and easy sql script will allow you to update all instances of the current URL with a new URL so moving wordpress sites is painless.</p>
<p>&nbsp;</p>
<pre class="crayon:false">UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');</pre>
<p>The post <a href="https://www.nicholas-rowe.com/quick-snippet-to-change-all-instances-of-wordpress-url/">Quick snippet to change all instances of WordPress URL</a> appeared first on <a href="https://www.nicholas-rowe.com">Nicholas Rowe</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nicholas-rowe.com/quick-snippet-to-change-all-instances-of-wordpress-url/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
