<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/rewrite</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 01:18:19 GMT</pubDate>
<item>
<title>(PHP) Perfect PHP .htaccess rewrites - FatFolderDesigner</title>
<link>http://snipplr.com/view/66655/perfect-php-htaccess-rewrites/</link>
<description><![CDATA[ <p>These two snippets together, the first in the .htaccess file, and the second in your PHP create an elegantly simple solution to arbitrary URLs with php. For a breakdown and example check out the link.

Don't want to follow the link, how about the quick version. The .htaccess redirects anything that doesn't exist to the PHP, where the script breaks it apart and places it all in the $_urlvars for your own uses.</p> ]]></description>
<pubDate>Sat, 11 Aug 2012 17:02:37 GMT</pubDate>
<guid>http://snipplr.com/view/66655/perfect-php-htaccess-rewrites/</guid>
</item>
<item>
<title>(Other) htaccess rewrite ?plan= - kbrown</title>
<link>http://snipplr.com/view/60680/htaccess-rewrite-plan/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 10 Nov 2011 07:12:56 GMT</pubDate>
<guid>http://snipplr.com/view/60680/htaccess-rewrite-plan/</guid>
</item>
<item>
<title>(Apache) Simple mod_rewrite example - .htaccess - jerryvig</title>
<link>http://snipplr.com/view/59942/simple-modrewrite-example--htaccess/</link>
<description><![CDATA[ <p>Maps photos.php?a=03 to photos/Mykonos and photos.php?a=04 to photos/Santorini</p> ]]></description>
<pubDate>Wed, 19 Oct 2011 13:55:29 GMT</pubDate>
<guid>http://snipplr.com/view/59942/simple-modrewrite-example--htaccess/</guid>
</item>
<item>
<title>(Apache) .htaccess add/remove www to domain redirect - macodev</title>
<link>http://snipplr.com/view/59367/htaccess-addremove-www-to-domain-redirect/</link>
<description><![CDATA[ <p>Rrewrite "www.domain.com -> domain.com" and viceversa</p> ]]></description>
<pubDate>Tue, 04 Oct 2011 02:57:36 GMT</pubDate>
<guid>http://snipplr.com/view/59367/htaccess-addremove-www-to-domain-redirect/</guid>
</item>
<item>
<title>(Other) .htaccess Rewrite Rule with 301 redirect - depiction</title>
<link>http://snipplr.com/view/55694/htaccess-rewrite-rule-with-301-redirect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 25 Jun 2011 06:40:27 GMT</pubDate>
<guid>http://snipplr.com/view/55694/htaccess-rewrite-rule-with-301-redirect/</guid>
</item>
<item>
<title>(Apache) .htaccess Site Down For Maintenance - macodev</title>
<link>http://snipplr.com/view/52426/htaccess-site-down-for-maintenance/</link>
<description><![CDATA[ <p>Site Down For Maintenance</p> ]]></description>
<pubDate>Thu, 21 Apr 2011 17:26:43 GMT</pubDate>
<guid>http://snipplr.com/view/52426/htaccess-site-down-for-maintenance/</guid>
</item>
<item>
<title>(Apache) .htaccess, point root to sub directory - arnekolja</title>
<link>http://snipplr.com/view/50032/htaccess-point-root-to-sub-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 04 Mar 2011 09:03:03 GMT</pubDate>
<guid>http://snipplr.com/view/50032/htaccess-point-root-to-sub-directory/</guid>
</item>
<item>
<title>(ActionScript 3) SWFAddress HASH rewrite - onemanstudio</title>
<link>http://snipplr.com/view/45162/swfaddress-hash-rewrite/</link>
<description><![CDATA[ <p>This is for as3 websites with html background, it simply rewrites address with #/</p> ]]></description>
<pubDate>Thu, 02 Dec 2010 21:14:36 GMT</pubDate>
<guid>http://snipplr.com/view/45162/swfaddress-hash-rewrite/</guid>
</item>
<item>
<title>(Apache) Making a subdirectory accessible with Wordpress in root - koko</title>
<link>http://snipplr.com/view/37722/making-a-subdirectory-accessible-with-wordpress-in-root/</link>
<description><![CDATA[ <p>I borrowed the script from the Dreamhost-wiki and did a minor change towards any folder.</p> ]]></description>
<pubDate>Thu, 22 Jul 2010 03:42:45 GMT</pubDate>
<guid>http://snipplr.com/view/37722/making-a-subdirectory-accessible-with-wordpress-in-root/</guid>
</item>
<item>
<title>(Apache) htaccess - disallow linking to images from outside your site - josephknight</title>
<link>http://snipplr.com/view/36698/htaccess--disallow-linking-to-images-from-outside-your-site/</link>
<description><![CDATA[ <p>Replace "mysite" with your own and this will block access to sites attempting to link to your images. Note, it's not necessarily always a bad thing for people to link to your images. If you run a blog, portfolio, or sales gallery, etc, you may actually want your images to show up in google image search results and the like. Careful that you're not blocking your goals along with the images. Make sure this script is for you.</p> ]]></description>
<pubDate>Mon, 05 Jul 2010 16:31:05 GMT</pubDate>
<guid>http://snipplr.com/view/36698/htaccess--disallow-linking-to-images-from-outside-your-site/</guid>
</item>
<item>
<title>(Apache) WordPress - .htaccess - block injection attacks - josephknight</title>
<link>http://snipplr.com/view/36695/wordpress--htaccess--block-injection-attacks/</link>
<description><![CDATA[ <p>The problem
Protecting dynamic websites is especially important. Most developers always protect their GET and POST requests, but sometimes this is not enough. We should also protect our blog against script injections and any attempt to modify the PHP GLOBALS and _REQUEST variables.

The solution
The following code blocks script injections and any attempts to modify the PHP GLOBALS and _REQUEST variables. Paste it in your .htaccess file (located in the root of your WordPress installation). Make sure to always back up the .htaccess file before modifying it.

Code explanation
Using the power of the .htaccess file, we can check requests. What we’ve done here is check whether the request contains a  and whether it has tried to modify the value of the PHP GLOBALS or _REQUEST variables. If any of these conditions are met, the request is blocked and a 403 error is returned to the client’s browser.

Sources

    * Protéger Son Site Avec Un Fichier .htaccess
    * Protect Your WordPress Blog Using .htaccess</p> ]]></description>
<pubDate>Mon, 05 Jul 2010 16:17:18 GMT</pubDate>
<guid>http://snipplr.com/view/36695/wordpress--htaccess--block-injection-attacks/</guid>
</item>
<item>
<title>(Regular Expression) Deny / Exclude SVN folder access on servers using ISAPI Rewrite or Equivalent. - supermauerbros</title>
<link>http://snipplr.com/view/35984/deny--exclude-svn-folder-access-on-servers-using-isapi-rewrite-or-equivalent/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Jun 2010 02:38:37 GMT</pubDate>
<guid>http://snipplr.com/view/35984/deny--exclude-svn-folder-access-on-servers-using-isapi-rewrite-or-equivalent/</guid>
</item>
<item>
<title>(PHP) Using different domains for different languages - iroybot</title>
<link>http://snipplr.com/view/34121/using-different-domains-for-different-languages/</link>
<description><![CDATA[ <p>courtesy of mark8barnes</p> ]]></description>
<pubDate>Mon, 10 May 2010 06:42:47 GMT</pubDate>
<guid>http://snipplr.com/view/34121/using-different-domains-for-different-languages/</guid>
</item>
<item>
<title>(Apache) Typo3 .htacces - tscheckenbach</title>
<link>http://snipplr.com/view/33719/typo3-htacces/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 02 May 2010 02:59:49 GMT</pubDate>
<guid>http://snipplr.com/view/33719/typo3-htacces/</guid>
</item>
<item>
<title>(HTML) Drupal htaccess for clean URL's - createinside</title>
<link>http://snipplr.com/view/33276/drupal-htaccess-for-clean-urls/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 27 Apr 2010 02:59:18 GMT</pubDate>
<guid>http://snipplr.com/view/33276/drupal-htaccess-for-clean-urls/</guid>
</item>
<item>
<title>(PHP) Simple PHP URL ReWritee - frankyfish</title>
<link>http://snipplr.com/view/31436/simple-php-url-rewritee/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 12 Apr 2010 12:11:36 GMT</pubDate>
<guid>http://snipplr.com/view/31436/simple-php-url-rewritee/</guid>
</item>
<item>
<title>(Apache) Website Maintenance Redirect - dertimbo</title>
<link>http://snipplr.com/view/19913/website-maintenance-redirect/</link>
<description><![CDATA[ <p>Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.</p> ]]></description>
<pubDate>Fri, 18 Sep 2009 09:15:05 GMT</pubDate>
<guid>http://snipplr.com/view/19913/website-maintenance-redirect/</guid>
</item>
<item>
<title>(Apache) Apache Redirect from *.example.com to example.com - wizard04</title>
<link>http://snipplr.com/view/17425/apache-redirect-from-examplecom-to-examplecom/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 24 Jul 2009 10:23:47 GMT</pubDate>
<guid>http://snipplr.com/view/17425/apache-redirect-from-examplecom-to-examplecom/</guid>
</item>
<item>
<title>(Apache) Rewrite URLs to force WWW - dertimbo</title>
<link>http://snipplr.com/view/13398/rewrite-urls-to-force-www/</link>
<description><![CDATA[ <p>A more generic and portable snippet</p> ]]></description>
<pubDate>Tue, 24 Mar 2009 09:13:20 GMT</pubDate>
<guid>http://snipplr.com/view/13398/rewrite-urls-to-force-www/</guid>
</item>
<item>
<title>(Java) Haskell static dispatch rewrite rules - narkisr</title>
<link>http://snipplr.com/view/11850/haskell-static-dispatch-rewrite-rules/</link>
<description><![CDATA[ <p>Haskell uses static dispatch for overloaded methods, in addition it has an extension to write rules that optimize Haskell dispatching code.</p> ]]></description>
<pubDate>Wed, 04 Feb 2009 16:38:50 GMT</pubDate>
<guid>http://snipplr.com/view/11850/haskell-static-dispatch-rewrite-rules/</guid>
</item>
</channel>
</rss>