Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 80 lines (63 sloc) 2.22 KB
# Turn on URL rewriting
RewriteEngine On
# Installation directory
# RewriteBase /
# Allow these directories and files to be displayed directly:
# - index.php (DO NOT FORGET THIS!)
# - robots.txt
# - favicon.ico
# - Any file inside of the media/ directory
RewriteRule ^(crossdomain.xml|index.php|robots.txt|favicon.ico|media) - [PT,L]
RewriteRule ^(phpMyAdmin) - [PT,L]
RewriteRule ^(staging) - [PT,L]
# - allow .git
RewriteRule ^(.git) - [PT,L]
RewriteRule ^(.*)staging/application/media/(.*) - [PT,L]
RewriteRule ^staging/(.*css)$ $1 [PT,L]
RewriteRule ^staging/(.*html)$ $1 [PT,L]
RewriteRule ^staging/(.*js)$ $1 [PT,L]
RewriteRule ^staging/(.*jpg)$ $1 [PT,L]
RewriteRule ^staging/(.*gif)$ $1 [PT,L]
RewriteRule ^staging/(.*png)$ $1 [PT,L]
RewriteRule ^staging/(.*swf)$ $1 [PT,L]
RewriteRule ^staging/(.*flv)$ $1 [PT,L]
RewriteRule ^staging/(.*f4v)$ $1 [PT,L]
RewriteRule ^staging/(.*)pdf$ - [PT,L]
RewriteRule ^demo/(.*css)$ $1 [PT,L]
RewriteRule ^demo/(.*html)$ $1 [PT,L]
RewriteRule ^demo/(.*js)$ $1 [PT,L]
RewriteRule ^demo/(.*jpg)$ $1 [PT,L]
RewriteRule ^demo/(.*gif)$ $1 [PT,L]
RewriteRule ^demo/(.*png)$ $1 [PT,L]
RewriteRule ^demo/(.*swf)$ $1 [PT,L]
RewriteRule ^demo/(.*flv)$ $1 [PT,L]
RewriteRule ^demo/(.*f4v)$ $1 [PT,L]
RewriteRule ^demo/(.*)pdf$ - [PT,L]
# Allow css and js to be displayed directly
RewriteRule ^(.*)css$ - [PT,L]
RewriteRule ^(.*)html$ - [PT,L]
RewriteRule ^(.*)js$ - [PT,L]
RewriteRule ^(.*)jpg$ - [PT,L]
RewriteRule ^(.*)gif$ - [PT,L]
RewriteRule ^(.*)png$ - [PT,L]
RewriteRule ^(.*)swf$ - [PT,L]
RewriteRule ^(.*)flv$ - [PT,L]
RewriteRule ^(.*)f4v$ - [PT,L]
RewriteRule ^(.*)pdf$ - [PT,L]
RewriteRule ^(.*)xlsx$ - [PT,L]
RewriteRule ^(.*)xls$ - [PT,L]
RewriteRule ^(.*)csv$ - [PT,L]
RewriteRule ^(.*)xml$ - [PT,L]
#NTVB Homepage Specific Rewrites
RewriteRule reviews\.htm homepage/reviews/
RewriteRule faq\.htm faq/nomarket/
RewriteRule ^demo-magazine.*$ - [PT,L]
# Protect application and system files from being viewed
RewriteRule ^application|modules|system|upload(.*)$ - [F,L]
RewriteRule ^upload(.*)$ - [F,L]
RewriteRule ^Michigan/$ michigan/
RewriteRule ^Michigan$ michigan/
#outage
#RewriteRule ^(.*)$ application/views/outage.php [L]
# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]
Something went wrong with that request. Please try again.