<?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>Perplexed Labs &#187; urlencode</title>
	<atom:link href="http://blog.perplexedlabs.com/tag/urlencode/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.perplexedlabs.com</link>
	<description>web development war stories from the frontlines to the backend</description>
	<lastBuildDate>Mon, 16 May 2011 14:19:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>mod_rewrite urlencode and special characters</title>
		<link>http://blog.perplexedlabs.com/2008/03/20/mod_rewrite-urlencode-and-special-characters/</link>
		<comments>http://blog.perplexedlabs.com/2008/03/20/mod_rewrite-urlencode-and-special-characters/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 19:08:32 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[urlencode]]></category>

		<guid isPermaLink="false">http://www.perplexedlabs.com/2008/03/20/mod_rewrite-urlencode-and-special-characters/</guid>
		<description><![CDATA[If you're developing a website which uses mod_rewrite rules to redirect to a single point of entry (in which behind the scenes the actual url request gets passed as a query string parameter to "index.php" for example)... something like the following: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [L] If you [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you're developing a website which uses mod_rewrite rules to redirect to a single point of entry (in which behind the scenes the actual url request gets passed as a query string parameter to "index.php" for example)... something like the following:<br />
<code><br />
RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteRule ^(.*)$ index.php?url=$1 [L]<br />
</code></p>
<p>If you want to be able to hand-off parameters which contain special characters that would normally get urlencoded and urldecoded mod_rewrite will interfere.  The trick is to urlencode the portion of the request URL that needs to preserve special characters TWICE!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.perplexedlabs.com/2008/03/20/mod_rewrite-urlencode-and-special-characters/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

