Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin admin@domain.com
- ServerName domain.com
- ServerAlias www.domain.com admin.domain.com
- DocumentRoot /Users/username/Sites/domain.com/htdocs
- ErrorLog /Users/username/Sites/domain.com/logs/error.log
- DirectoryIndex index.php
- RewriteEngine On
- # Remove www alias
- RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
- RewriteRule ^(.+)$ http://domain.com$1 [R=301,L]
- RewriteCond %{REQUEST_URI} ^.+$
- RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|swf|php|txt|pdf|xml)$ [OR]
- RewriteCond %{REQUEST_FILENAME} -f [OR]
- RewriteCond %{REQUEST_FILENAME} -d [OR]
- RewriteCond %{REQUEST_FILENAME} -l
- RewriteRule ^ - [L]
- RewriteRule ^(.*)$ /index.php?kohana_uri=$1 [PT,L,QSA]
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement