Prev Previous Post   Next Post Next
  #1  
Old 17th January 2009, 23: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; 17th January 2009 at 23:16.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
iptables rules for ftp flourishing Installation/Configuration 5 14th April 2008 21:18
Virtual Users with Postfix/Courier/Amavis etc...Quarantine? volksman HOWTO-Related Questions 9 30th January 2008 11:53
mod_proxy / rewrite rules KenKnight Server Operation 25 30th January 2007 22:21
Drupal and Apache Rewrite Rules andre Server Operation 10 4th May 2006 21:04


All times are GMT +2. The time now is 20:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.