<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Htaccess, Apache, And Rewrites! Oh, My!</title>
	<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/</link>
	<description></description>
	<pubDate>Wed, 20 Aug 2008 07:49:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Erik</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-20938</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Thu, 14 Aug 2008 23:43:17 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-20938</guid>
		<description>I'm just learning about htaccess and this article was a godsend.  Thanks to you, I was able to rid myself of that ugly "index.php" on my homepage, which should help with SEO.  More importantly, I understood what I was doing, instead of just copy-pasting from someone else's htaccess.</description>
		<content:encoded><![CDATA[<p>I&#8217;m just learning about htaccess and this article was a godsend.  Thanks to you, I was able to rid myself of that ugly &#8220;index.php&#8221; on my homepage, which should help with SEO.  More importantly, I understood what I was doing, instead of just copy-pasting from someone else&#8217;s htaccess.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zk2</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-19445</link>
		<dc:creator>zk2</dc:creator>
		<pubDate>Wed, 06 Aug 2008 15:06:46 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-19445</guid>
		<description>I've been trying to find a solution to my question.  Having Googled, I've found various code snippets that have pointed me into the right direction, and I've come up with the following:

Options +FollowSymlinks
Options All -Indexes
RewriteEngine on
RewriteBase /
RewriteRule ^/products/([0-9]+)/\?page=([0-9]+)$ /products/?x=$1&#38;page=$2 [L]

I've tried many permutations of that RewiteRule, but I just can't get it to work.

I've also tried implementing the following method with no success:

RewriteCond %{REQUEST_URI} ^/products/\?x=([0-9]*)&#38;page=([0-9]*)$
RewriteRule ^/products/([0-9]*)/\?page=([0-9]*)$ /accounts/?user=%1&#38;page=%2 [NC,L]

What I'm doing wrong?

It maybe worth pointing out that I've placed the rules into the root .htaccess file only, but I want the rule to apply to only the products directory.  I don't know if the correct way would be to add a seperate .htaccess to the products directory?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to find a solution to my question.  Having Googled, I&#8217;ve found various code snippets that have pointed me into the right direction, and I&#8217;ve come up with the following:</p>
<p>Options +FollowSymlinks<br />
Options All -Indexes<br />
RewriteEngine on<br />
RewriteBase /<br />
RewriteRule ^/products/([0-9]+)/\?page=([0-9]+)$ /products/?x=$1&amp;page=$2 [L]</p>
<p>I&#8217;ve tried many permutations of that RewiteRule, but I just can&#8217;t get it to work.</p>
<p>I&#8217;ve also tried implementing the following method with no success:</p>
<p>RewriteCond %{REQUEST_URI} ^/products/\?x=([0-9]*)&amp;page=([0-9]*)$<br />
RewriteRule ^/products/([0-9]*)/\?page=([0-9]*)$ /accounts/?user=%1&amp;page=%2 [NC,L]</p>
<p>What I&#8217;m doing wrong?</p>
<p>It maybe worth pointing out that I&#8217;ve placed the rules into the root .htaccess file only, but I want the rule to apply to only the products directory.  I don&#8217;t know if the correct way would be to add a seperate .htaccess to the products directory?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zk2</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-19415</link>
		<dc:creator>zk2</dc:creator>
		<pubDate>Wed, 06 Aug 2008 08:58:37 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-19415</guid>
		<description>Is it possible to translate a query string value into a directory name through .htaccess?

So could we convert http://www.mydomain.com/products/?x=482001 into http://www.mydomain.com/products/482001/

And what if the query string wasn't as simple as my first example.  Say it was made up of an undetermined number of key=value pairs it didn’t follow a predefined structure, like http://www.mydomain.com/products/?x=482001&#38;y=1&#38;p=1 or http://www.mydomain.com/products/?y=1&#38;p=1&#38;x=482001&#38;u=78

Is it possible to always get the value of x in the query string and convert it into a directory name?</description>
		<content:encoded><![CDATA[<p>Is it possible to translate a query string value into a directory name through .htaccess?</p>
<p>So could we convert <a href="http://www.mydomain.com/products/?x=482001" rel="nofollow">http://www.mydomain.com/products/?x=482001</a> into <a href="http://www.mydomain.com/products/482001/" rel="nofollow">http://www.mydomain.com/products/482001/</a></p>
<p>And what if the query string wasn&#8217;t as simple as my first example.  Say it was made up of an undetermined number of key=value pairs it didn’t follow a predefined structure, like <a href="http://www.mydomain.com/products/?x=482001&amp;y=1&amp;p=1" rel="nofollow">http://www.mydomain.com/products/?x=482001&amp;y=1&amp;p=1</a> or <a href="http://www.mydomain.com/products/?y=1&amp;p=1&amp;x=482001&amp;u=78" rel="nofollow">http://www.mydomain.com/products/?y=1&amp;p=1&amp;x=482001&amp;u=78</a></p>
<p>Is it possible to always get the value of x in the query string and convert it into a directory name?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeroen</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-18839</link>
		<dc:creator>jeroen</dc:creator>
		<pubDate>Fri, 01 Aug 2008 01:36:34 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-18839</guid>
		<description>Just serfed in. Great site, guys!</description>
		<content:encoded><![CDATA[<p>Just serfed in. Great site, guys!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-18365</link>
		<dc:creator>Kathy</dc:creator>
		<pubDate>Mon, 28 Jul 2008 17:57:51 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-18365</guid>
		<description>I thank the Lord for giving us the gift of brilliant preachers!t</description>
		<content:encoded><![CDATA[<p>I thank the Lord for giving us the gift of brilliant preachers!t</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott &#187; Blog Archive &#187; .htaccess redirects and apache mod rewrite</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-17128</link>
		<dc:creator>Scott &#187; Blog Archive &#187; .htaccess redirects and apache mod rewrite</dc:creator>
		<pubDate>Tue, 22 Jul 2008 08:06:20 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-17128</guid>
		<description>[...] http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#more-37 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#more-37" rel="nofollow">http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#more-37</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toto web Hosting</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-13894</link>
		<dc:creator>Toto web Hosting</dc:creator>
		<pubDate>Wed, 09 Jul 2008 06:46:23 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-13894</guid>
		<description>thanks for you replay Kyle. I will try it and then let you know.</description>
		<content:encoded><![CDATA[<p>thanks for you replay Kyle. I will try it and then let you know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Why are designers never 100% satisfied? &#124; Dalton Trent's Blog</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-13793</link>
		<dc:creator>Why are designers never 100% satisfied? &#124; Dalton Trent's Blog</dc:creator>
		<pubDate>Tue, 08 Jul 2008 13:50:04 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-13793</guid>
		<description>[...] The simplicity is right up my street, and I think the overall style is more professional than my current offering. I&#8217;m a little reluctant, however, to separate my portfolio from my blog, and if I do, what&#8217;s the best way to tie them together? A simple htaccess redirection? [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] The simplicity is right up my street, and I think the overall style is more professional than my current offering. I&#8217;m a little reluctant, however, to separate my portfolio from my blog, and if I do, what&#8217;s the best way to tie them together? A simple htaccess redirection? [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Airey</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-12965</link>
		<dc:creator>David Airey</dc:creator>
		<pubDate>Fri, 04 Jul 2008 12:52:02 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-12965</guid>
		<description>Just a quick note to thank you again for this resource. I find myself returning here everytime I have an htaccess question.</description>
		<content:encoded><![CDATA[<p>Just a quick note to thank you again for this resource. I find myself returning here everytime I have an htaccess question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-12893</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 03 Jul 2008 21:35:53 +0000</pubDate>
		<guid>http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/#comment-12893</guid>
		<description>&lt;strong&gt;@totonet:&lt;/strong&gt;

I believe something like this should work:

&lt;code&gt;RewriteRule ^des/(.*) /$1 [R=301,L]&lt;/code&gt;

&lt;strong&gt;@Kelly:&lt;/strong&gt;

Most likely something is being misstyped. Double check that everything is spelled correctly. If you're still getting an error, only put the first couple lines and keep adding more until the error comes up, then you'll know what line is causing the problem.</description>
		<content:encoded><![CDATA[<p><strong>@totonet:</strong></p>
<p>I believe something like this should work:</p>
<p><code>RewriteRule ^des/(.*) /$1 [R=301,L]</code></p>
<p><strong>@Kelly:</strong></p>
<p>Most likely something is being misstyped. Double check that everything is spelled correctly. If you&#8217;re still getting an error, only put the first couple lines and keep adding more until the error comes up, then you&#8217;ll know what line is causing the problem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
