<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Error Pages Using .htaccess in Web Security</title>
    <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957935#M243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Redeemer,&lt;BR /&gt;&lt;BR /&gt;I don't have any previous experience using the mod rewrite. I'm asking around to see if anyone can provide some assistance.&lt;BR /&gt;&lt;BR /&gt;You've probably already seen it, but here is a link to the online manual for this functionality:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html" target="_blank"&gt;http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'll see what I can find. No luck yet &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2008 23:29:27 GMT</pubDate>
    <dc:creator>jowolfer</dc:creator>
    <dc:date>2008-05-01T23:29:27Z</dc:date>
    <item>
      <title>Custom Error Pages Using .htaccess</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957934#M242</link>
      <description>&lt;P&gt;Hi All&lt;BR /&gt;&lt;BR /&gt;Im new to Ironport Nation and would like some help setting up custom error pages&lt;BR /&gt;&lt;BR /&gt;I have an Apache server setup with custom errors but am having trouble with my.htaccess and mod_rewrite i believe it needs to be something like&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;URL&lt;/B&gt;&lt;BR /&gt;&lt;A href="http://proxy.rlc.qld.edu.au/errors/blocked.html?Time=30/Apr/2008:14:29:56%20+1000&amp;amp;ID=0004221698&amp;amp;Client_IP=10.0.0.13&amp;amp;User=-&amp;amp;Site=www.blodddddgstorm.co.uk&amp;amp;URI=htaccess-mod_rewrite-ultimate-guide/&amp;amp;Status_Code=503&amp;amp;Decision_Tag=OTHER&amp;amp;URL_Cat=nc&amp;amp;WBRS=dns&amp;amp;DVS_Verdict=0&amp;amp;DVS_ThreatName=-" target="_blank"&gt;http://proxy.rlc.qld.edu.au/errors/blocked.html?Time=30/Apr/2008:14:29:56%20+1000&amp;amp;ID=0004221698&amp;amp;Client_IP=10.0.0.13&amp;amp;User=-&amp;amp;Site=www.blodddddgstorm.co.uk&amp;amp;URI=htaccess-mod_rewrite-ultimate-guide/&amp;amp;Status_Code=503&amp;amp;Decision_Tag=OTHER&amp;amp;URL_Cat=nc&amp;amp;WBRS=dns&amp;amp;DVS_Verdict=0&amp;amp;DVS_ThreatName=-&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;.htaccess&lt;/B&gt;&lt;BR /&gt;rewriteEngine on&lt;BR /&gt;rewriteCond %{query_string} ^URL_Cat=nc&amp;amp;WBRS=dns$&lt;BR /&gt;rewriteRule ^errors$ &lt;A href="http://proxy.rlc.qld.edu.au/errors/pagenotfound.html" target="_blank"&gt;http://proxy.rlc.qld.edu.au/errors/pagenotfound.html&lt;/A&gt; [R=301,L] &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;redirects to &lt;/B&gt;&lt;BR /&gt;&lt;A href="http://proxy.rlc.qld.edu.au/errors/pagenotfound.html" target="_blank"&gt;http://proxy.rlc.qld.edu.au/errors/pagenotfound.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I would also like to incorporate&lt;BR /&gt;URL_Cat=nc&amp;amp;WBRS=dns           pagenotfound.html&lt;BR /&gt;URL_Cat=Adul&amp;amp;WBRS=-            adult.html&lt;BR /&gt;URL_Cat=Game&amp;amp;WBRS=-          games.html&lt;BR /&gt;URL_Cat=C_Bloc&amp;amp;WBRS=-         custom.html&lt;BR /&gt;&lt;BR /&gt;i know the .htaccess (mod_rewite) is wrong thats where i need help&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2008 12:47:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957934#M242</guid>
      <dc:creator>redeemer_ironport</dc:creator>
      <dc:date>2008-04-30T12:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Error Pages Using .htaccess</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957935#M243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Redeemer,&lt;BR /&gt;&lt;BR /&gt;I don't have any previous experience using the mod rewrite. I'm asking around to see if anyone can provide some assistance.&lt;BR /&gt;&lt;BR /&gt;You've probably already seen it, but here is a link to the online manual for this functionality:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html" target="_blank"&gt;http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'll see what I can find. No luck yet &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 23:29:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957935#M243</guid>
      <dc:creator>jowolfer</dc:creator>
      <dc:date>2008-05-01T23:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Error Pages Using .htaccess</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957936#M244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason you're trying to use mod_rewrite to do this?&lt;BR /&gt;&lt;BR /&gt;The EUN redirection was designed to be directed to a CGI script, which can then dynamically generate the error page based on the criteria passed in, which allows you to customize the error returned (eg, you can list the full category name which is blocked, for example)&lt;BR /&gt;&lt;BR /&gt;If you really want to have it directing to a static page you can still do this in a CGI script rather than using mod_rewrite.&lt;BR /&gt;&lt;BR /&gt;If you get the config right then mod_rewrite should work, but it's almost certainly going to be overkill...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 05:25:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957936#M244</guid>
      <dc:creator>Doc_ironport</dc:creator>
      <dc:date>2008-05-02T05:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Error Pages Using .htaccess</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957937#M245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no reason , &lt;BR /&gt;I guess we use mod_rewrite for other things and find it to be an extremely powerful tool and knowing nothing about cgi scripts made it an attractive choice&lt;BR /&gt;&lt;BR /&gt;If cgi is another option would anyone be able to share their script with us&lt;BR /&gt;&lt;BR /&gt;Im still interested to know in the mod_rewrite solution if anyone come across it, im sure it will still be useful&lt;BR /&gt;&lt;BR /&gt;thanks  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 07:53:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957937#M245</guid>
      <dc:creator>redeemer_ironport</dc:creator>
      <dc:date>2008-05-02T07:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Error Pages Using .htaccess</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957938#M246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I'm not mistaken, you can just specify multiple RewriteCond/RewriteRule combinations. Something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __jive_macro_name="code" class="jive_text_macro jive_macro_code" ___default_attr="plain"&gt;&lt;BR /&gt;rewriteEngine on&lt;BR /&gt;rewriteCond %{query_string} ^URL_Cat=nc&amp;amp;WBRS=dns$&lt;BR /&gt;rewriteRule ^errors$ &lt;A href="http://proxy.rlc.qld.edu.au/errors/pagenotfound.html" target="_blank"&gt;http://proxy.rlc.qld.edu.au/errors/pagenotfound.html&lt;/A&gt; [R=301,L]&lt;BR /&gt;rewriteCond %{query_string} ^URL_Cat=adult&amp;amp;WBRS=$&lt;BR /&gt;rewriteRule ^errors$ &lt;A href="http://proxy.rlc.qld.edu.au/errors/adult.html" target="_blank"&gt;http://proxy.rlc.qld.edu.au/errors/adult.html&lt;/A&gt; [R=301,L]&lt;BR /&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2008 17:59:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957938#M246</guid>
      <dc:creator>Bart_ironport</dc:creator>
      <dc:date>2008-05-04T17:59:51Z</dc:date>
    </item>
    <item>
      <title>mod_rewrite custom error pages solved</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957939#M247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys&lt;BR /&gt;got it sorted this morning once you have mod_rewrite working simply add a condition and rule like the following to .htaccess&lt;BR /&gt;&lt;BR /&gt;RewriteCond %{QUERY_STRING} &amp;amp;?URL_Cat=nc&amp;amp;WBRS=dns&amp;amp;?&lt;BR /&gt;RewriteRule ^(.*)$ &lt;A href="http://proxy.example.com/errors/pagenotfound.html" target="_blank"&gt;http://proxy.example.com/errors/pagenotfound.html&lt;/A&gt;? [R=301,L]&lt;BR /&gt;&lt;BR /&gt;#Next Condition Rule ect....&lt;BR /&gt;&lt;BR /&gt;so easy  :wink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 08:54:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957939#M247</guid>
      <dc:creator>redeemer_ironport</dc:creator>
      <dc:date>2008-05-09T08:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Error Pages Using .htaccess</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957940#M248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;Do we have any workaround to hide the transaction ID in URL link?&lt;BR /&gt;&lt;BR /&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 22:54:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957940#M248</guid>
      <dc:creator>cwling2008</dc:creator>
      <dc:date>2008-08-21T22:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Error Pages Using .htaccess</title>
      <link>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957941#M249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;Do we have any workaround to hide the transaction ID in URL link?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;There's no way to hide it, but why would you want to?&lt;BR /&gt;&lt;BR /&gt;From the end users perspective it's a meaningless number that only shown in the URL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:22:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/web-security/custom-error-pages-using-htaccess/m-p/957941#M249</guid>
      <dc:creator>Doc_ironport</dc:creator>
      <dc:date>2008-08-25T07:22:17Z</dc:date>
    </item>
  </channel>
</rss>

