# 2008 Holodyn Corporation
# -------- Default Pages
DirectoryIndex index.php index.html index.htm
# Redirect /index.html http://www.website.com/subfolder/index.html
# -------- Prevent Snooping
<Files .htaccess>
order allow,deny
deny from all
</Files>
IndexIgnore */*
Options +FollowSymLinks
Options -Indexes
# -------- mod_rewrite in use
RewriteEngine On
# -------- Add Missing WWW
# http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#require-the-www-in-htaccess
# RewriteCond %{HTTP_HOST} !^www\.website\.com$ [NC]
# RewriteRule ^(.*)$ http://www.website.com/$1 [R=301,L]
# -------- Location of SEF Index
RewriteBase /web
# -------- SEF Rewrite Conditions
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
# -------- END