Created
June 26, 2013 01:25
-
-
Save tonyjunkes/5864007 to your computer and use it in GitHub Desktop.
Apache Mod_Rewrite .htaccess example to rewrite a FW/1 Subsystem URL to be SES and rewrite to remove index.cfm from URLs. Replace the example Subsystem (admin) with the actual Subsystem to be rewritten.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
#Rewrite FW/1 Subsystem | |
RewriteRule ^admin/(.*)$ index.cfm/admin:$1 [L] | |
#Rewrite index.cfm | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml)$ | |
RewriteRule ^(.*)$ index.cfm/$1 [NS] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment