Skip to content

Instantly share code, notes, and snippets.

@huntlyc
Last active December 16, 2015 14:59

Revisions

  1. huntlyc revised this gist Apr 25, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #Domain Redirect
    <IfModule mod_rewrite.c> RewriteEngine On
    RewriteBase / #RedirectMatch 301 ^/contact\/$ http://www.huntlywordpress.com/contact/
    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^(www\.)?huntlywordpress\.co\.uk$ [NC]
    RewriteRule ^ http://www.huntlywordpress.com%{REQUEST_URI} [R=301,L]
    </IfModule>
  2. huntlyc revised this gist Apr 24, 2013. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion .htaccess
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,12 @@
    #BEGIN custom redirects
    #Domain Redirect
    <IfModule mod_rewrite.c> RewriteEngine On
    RewriteBase / #RedirectMatch 301 ^/contact\/$ http://www.huntlywordpress.com/contact/
    RewriteCond %{HTTP_HOST} ^(www\.)?huntlywordpress\.co\.uk$ [NC]
    RewriteRule ^ http://www.huntlywordpress.com%{REQUEST_URI} [R=301,L]
    </IfModule>
    #EndDomain Redirect

    #BEGIN custom redirects (single page)
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
  3. huntlyc created this gist Apr 24, 2013.
    18 changes: 18 additions & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #BEGIN custom redirects
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RedirectMatch 301 ^/contact\/$ http://www.huntlywordpress.com/contact/
    </IfModule>
    #END custom redirects

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress