Thread: Rewrite Rules
View Single Post
  #1  
Old 18th January 2009, 00:08
tristanlee85 tristanlee85 is offline
Senior Member
 
Join Date: Apr 2006
Posts: 199
Thanks: 3
Thanked 2 Times in 2 Posts
Default Rewrite Rules

I am trying to set up a duplicated server that originally ran on a Windows machine and ISAPI Rewrite rules over to work on my FC7 machine. Here is the rules for ISAPI_Rewrite:

Code:
RewriteEngine on



RewriteCond %{HTTP_HOST} ^.?\.local$ [NC]

RewriteRule (.*) /core/index\.cfm?pagepath=/ [L]



RewriteRule ^/favicon\.ico /core/favicon\.ico [L]

RewriteRule ^/shortcuticon\.ico /core/shortcuticon\.ico [L]



RewriteCond %{REQUEST_URI} !^/(admin|core|docs|sitecheck|ssl|scripts|cfcflexplorer|flex2gateway|flashservices|cfide|cfformgateway|com|UserUploadedEditor|SpecialReports|PDFIssues|contentUploadedByEweb|_loadTesting)($|/) [NC]



#just in case u are trying to rewrite our param

RewriteCond %{QUERY_STRING} !pagepath [NC]	



RewriteCond %{QUERY_STRING} ^(.*)$ 

RewriteRule ^([^\?]*)\??(.*)  core/index.cfm?pagepath=/$1&%1 [L]
Now I believe these are the same for mod_rewrite so I had copied them into the Apache Directives field on the subdomain I am using, but I am getting a 400 Bad Request error. Did I put these rules in the wrong location or are the rules not compatible with what I am doing?
__________________
ColdFusion Coding, Blog, and Forum
www.cfcoding.com

Last edited by tristanlee85; 18th January 2009 at 00:16.
Reply With Quote
Sponsored Links