Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 447 Bytes
allow from all
#Options +FollowSymLinks
IndexIgnore */*
RewriteEngine On
# Redirect all traffic from www.example.com to example.com
### RewriteCond %{HTTP_HOST} ^www.example.com [nocase]
### RewriteRule ^(.*) http://example.com/$1 [last,redirect=301]
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
You can’t perform that action at this time.