Skip to content

Commit

Permalink
perm redirect without www
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Oct 3, 2009
1 parent 6d3da5f commit 22106a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /router.php

# planet-pear.org specific
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

0 comments on commit 22106a4

Please sign in to comment.