<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Htaccess File Sample</title>
	<atom:link href="http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Thu, 16 May 2013 00:37:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David Manion</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-14682</link>
		<dc:creator>David Manion</dc:creator>
		<pubDate>Wed, 20 Mar 2013 13:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-14682</guid>
		<description><![CDATA[Thank you very much for this. I don&#039;t know if you answer questions, but I&#039;ll ask one just in case. I&#039;m doing a 301 redirect for an old link to a new php file. For whatever reason the link won&#039;t redirect. However, if I change a lower case letter to an Uppercase letter in the preceding directory&#039;s name it works as it should. I&#039;ve tried everything, and I just can&#039;t seem to get it to work. Here is the code example: Redirect 301 /products/volture/peh20w/peh20w.php http://www.mide.com/products/volture/peh20w.php.
If I change the /peh20w/ to  /peh20W/ (note capital W) then it works. Any ideas greatly appreciated. Thanks.]]></description>
		<content:encoded><![CDATA[<p>Thank you very much for this. I don't know if you answer questions, but I'll ask one just in case. I'm doing a 301 redirect for an old link to a new php file. For whatever reason the link won't redirect. However, if I change a lower case letter to an Uppercase letter in the preceding directory's name it works as it should. I've tried everything, and I just can't seem to get it to work. Here is the code example: Redirect 301 /products/volture/peh20w/peh20w.php http://www.mide.com/products/volture/peh20w.php.<br />
If I change the /peh20w/ to  /peh20W/ (note capital W) then it works. Any ideas greatly appreciated. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-493</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Fri, 07 Oct 2011 17:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-493</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@ â€¦&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not only do I read about them, in great depth, I also write about them and program using them.  I wrote an authoritative &lt;a href=&quot;http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html&quot;&gt;list of HTTP status codes here&lt;/a&gt;, which maybe you should read before commenting again ;p&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p><strong>@ â€¦</strong></p>
<p>Not only do I read about them, in great depth, I also write about them and program using them.  I wrote an authoritative <a href="http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html">list of HTTP status codes here</a>, which maybe you should read before commenting again ;p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just-euphoria</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-492</link>
		<dc:creator>just-euphoria</dc:creator>
		<pubDate>Wed, 07 Sep 2011 03:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-492</guid>
		<description><![CDATA[nice article... really helpfull..
thx]]></description>
		<content:encoded><![CDATA[<p>nice article... really helpfull..<br />
thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ...</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-491</link>
		<dc:creator>...</dc:creator>
		<pubDate>Sat, 27 Aug 2011 15:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-491</guid>
		<description><![CDATA[You know that only the http stauts codes in the range from 400 - 499 are Client Errors and 500 - 599 are Server errors?

1XX is informational, 2XX stand for success and 3XX is for redirection.

Please read about them before you write a big .htaccess that is in some places wrong.]]></description>
		<content:encoded><![CDATA[<p>You know that only the http stauts codes in the range from 400 - 499 are Client Errors and 500 - 599 are Server errors?</p>
<p>1XX is informational, 2XX stand for success and 3XX is for redirection.</p>
<p>Please read about them before you write a big .htaccess that is in some places wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sugali</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-490</link>
		<dc:creator>sugali</dc:creator>
		<pubDate>Wed, 25 May 2011 17:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-490</guid>
		<description><![CDATA[How to make custom error so bot (google, yahoo, bing, etc) still can visiting and indexing while normal user are being blocked
Is that possible to make it?
What should I write in .htaccess?]]></description>
		<content:encoded><![CDATA[<p>How to make custom error so bot (google, yahoo, bing, etc) still can visiting and indexing while normal user are being blocked<br />
Is that possible to make it?<br />
What should I write in .htaccess?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rozliczenia nfz</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-485</link>
		<dc:creator>rozliczenia nfz</dc:creator>
		<pubDate>Wed, 01 Dec 2010 15:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-485</guid>
		<description><![CDATA[really helpfull, thx]]></description>
		<content:encoded><![CDATA[<p>really helpfull, thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ksu</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-484</link>
		<dc:creator>ksu</dc:creator>
		<pubDate>Tue, 05 Oct 2010 17:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-484</guid>
		<description><![CDATA[great tips, tnx a lot!]]></description>
		<content:encoded><![CDATA[<p>great tips, tnx a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hipolito Fulk</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-483</link>
		<dc:creator>Hipolito Fulk</dc:creator>
		<pubDate>Sat, 14 Aug 2010 06:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-483</guid>
		<description><![CDATA[Good post, will frequent your site.]]></description>
		<content:encoded><![CDATA[<p>Good post, will frequent your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pada</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-482</link>
		<dc:creator>Pada</dc:creator>
		<pubDate>Wed, 28 Jul 2010 13:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-482</guid>
		<description><![CDATA[Excellent htaccess rewrite, thanks for this.]]></description>
		<content:encoded><![CDATA[<p>Excellent htaccess rewrite, thanks for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JamesE</title>
		<link>http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html#comment-481</link>
		<dc:creator>JamesE</dc:creator>
		<pubDate>Wed, 21 Jul 2010 22:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/ultimate-htaccess-file-sample.html#comment-481</guid>
		<description><![CDATA[&lt;p&gt;I hope this finds you doing well.  I have been pulling my hair out trying to write a set of mod_rewrite rules in a VirtualHost directive and I seem to be missing my goal in one area.  The thing I&#039;m trying to do is &lt;em&gt;proxy an inbound connection&lt;/em&gt; to a &lt;strong&gt;WSSO&lt;/strong&gt; (Web Single Sign on provider) that will forward the traffic back to my virtual host once authentication happens if:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The requested URL is http://jezman.web.zowamunga.com/index.php?option=com_timeoffkeeper  PLUS WHATEVER ELSE IS IN THE QUERY STRING *AND*&lt;/li&gt;
&lt;li&gt;If given cookie named ObSSOCookie *IS NOT* in the header *OR*&lt;/li&gt;
&lt;li&gt;If said cookie *IS* in the header *BUT* has a value of &quot;logedout&quot; *OR*&lt;/li&gt;
&lt;li&gt;The request for said URL pattern already stated did not come from one of a specific IP addresses:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;My virtual host config looks like:&lt;/p&gt;

&lt;pre&gt;##   ServerAdmin webmaster@host.some_domain.com
DocumentRoot /nethome/site/html
ServerName site.com
TransferLog &quot;&#124;/usr/local/sbin/cronolog /var/ApacheLogs/site /%Y/%m/%d/access.log&quot;
ErrorLog    &quot;&#124;/usr/local/sbin/cronolog /var/ApacheLogs/site /%Y/%m/%d/errors.log&quot;
&#160;
RewriteEngine on
RewriteLog &quot;/var/ApacheLogs/site/rewrite.log&quot;
RewriteLogLevel 5
RewriteCond %{HTTP_COOKIE} !ObSSOCookie [NC,OR]
RewriteCond %{HTTP_COOKIE} ObSSOCookie=loggedout [NC]
RewriteCond %{REMOTE_ADDR} !1.1.1.[201-202] [OR]
RewriteCond %{REMOTE_ADDR} !1.1.2.[139-141] [OR]
RewriteRule ^index.php?option=com_timeoffkeeper$ http://dev-wgproxy.corp.fedex.com/com_TimeOffKeeper [P,NC,L]&lt;/pre&gt;

&lt;p&gt;I can check for the cookie presence and value just fine and my rewrite rule works great for that.  However when I add the part where I want to do the rewrite / proxy IF the requested URL starts with &lt;code&gt;index.php?option=com_timeoffkeeper&lt;/code&gt; it does not proxy the connection to the WSSO provider.  Iâ€™ve run my regular expression through Regex Coach and the coach says things should work.  Any help you can provide is GREATLY appreciated. Have a nice day.&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>I hope this finds you doing well.  I have been pulling my hair out trying to write a set of mod_rewrite rules in a VirtualHost directive and I seem to be missing my goal in one area.  The thing I'm trying to do is <em>proxy an inbound connection</em> to a <strong>WSSO</strong> (Web Single Sign on provider) that will forward the traffic back to my virtual host once authentication happens if:</p>
<ol>
<li>The requested URL is http://jezman.web.zowamunga.com/index.php?option=com_timeoffkeeper  PLUS WHATEVER ELSE IS IN THE QUERY STRING *AND*</li>
<li>If given cookie named ObSSOCookie *IS NOT* in the header *OR*</li>
<li>If said cookie *IS* in the header *BUT* has a value of "logedout" *OR*</li>
<li>The request for said URL pattern already stated did not come from one of a specific IP addresses:</li>
</ol>
<p>My virtual host config looks like:</p>
<pre>##   ServerAdmin webmaster@host.some_domain.com
DocumentRoot /nethome/site/html
ServerName site.com
TransferLog "|/usr/local/sbin/cronolog /var/ApacheLogs/site /%Y/%m/%d/access.log"
ErrorLog    "|/usr/local/sbin/cronolog /var/ApacheLogs/site /%Y/%m/%d/errors.log"
&nbsp;
RewriteEngine on
RewriteLog "/var/ApacheLogs/site/rewrite.log"
RewriteLogLevel 5
RewriteCond %{HTTP_COOKIE} !ObSSOCookie [NC,OR]
RewriteCond %{HTTP_COOKIE} ObSSOCookie=loggedout [NC]
RewriteCond %{REMOTE_ADDR} !1.1.1.[201-202] [OR]
RewriteCond %{REMOTE_ADDR} !1.1.2.[139-141] [OR]
RewriteRule ^index.php?option=com_timeoffkeeper$ http://dev-wgproxy.corp.fedex.com/com_TimeOffKeeper [P,NC,L]</pre>
<p>I can check for the cookie presence and value just fine and my rewrite rule works great for that.  However when I add the part where I want to do the rewrite / proxy IF the requested URL starts with <code>index.php?option=com_timeoffkeeper</code> it does not proxy the connection to the WSSO provider.  Iâ€™ve run my regular expression through Regex Coach and the coach says things should work.  Any help you can provide is GREATLY appreciated. Have a nice day.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
