Skip to content

Commit

Permalink
Force canonicalisation to non-www for domain
Browse files Browse the repository at this point in the history
  • Loading branch information
steveovens committed Feb 8, 2011
1 parent 19c2897 commit dc230ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rename.htaccess
Expand Up @@ -12,6 +12,14 @@ Options All -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On

# Uncomment these lines to force non-www redirect (canonicalise)
# Replace "yourdomain" and "co" with your own domain and TLD extension
#
#RewriteCond %{HTTP_HOST} !^yourdomain\.co$
#RewriteRule (.*) http://yourdomain.co/$1 [R=301,L]
#

RewriteRule ^shorten/(.*)$ shorten.php?longurl=$1 [L]
RewriteRule ^([0-9a-zA-Z]{1,6})$ redirect.php?url=$1 [L]
</IfModule>

0 comments on commit dc230ee

Please sign in to comment.