Skip to content

Instantly share code, notes, and snippets.

View BluecadetInteractive's full-sized avatar

Bluecadet BluecadetInteractive

View GitHub Profile
@BluecadetInteractive
BluecadetInteractive / .htaccess
Created February 13, 2013 15:49
Rewrite rules to serve static content allowing other routes to be matched.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/path/to/page [NC]
RewriteRule ^(.*)$ /static/page.html [L]
</IfModule>
@BluecadetInteractive
BluecadetInteractive / .htaccess
Created February 13, 2013 15:31
Rewrite conditions provided in default Drupal 7 .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following: