Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 695 Bytes
# DISABLE MAGIC QUOTES
php_flag magic_quotes_gpc Off
# ENABLE REWRITING
Options +FollowSymLinks
RewriteEngine On
RewriteBase /edit/
# DISABLE TRAILING SLASHES
# DirectorySlash Off
# RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L]
# CHECK IF CALLING FILE OR DIRECTORY
RewriteCond %{request_filename} -d [OR]
RewriteCond %{request_filename} -f
# RewriteCond %{request_uri} !^/images$ [NC]
RewriteRule ^.*$ - [L]
# CP REWRITES ----------------------------------------------------------------------
# SCSS
RewriteRule ^scss/(.*)$ actions/scss.php/$1 [L,QSA]
# Actions
RewriteRule ^actions/(.*)$ actions/$1.php [L,QSA]
# Pages
RewriteRule ^(.*)$ pages/$1.php [L,QSA]
DirectoryIndex pages/index.php
You can’t perform that action at this time.