Confused with CakePHP 2.2.3 - after some time of trying, no success

Topics: Developer Forum, User Forum
Oct 24, 2012 at 11:27 AM
Edited Oct 24, 2012 at 11:40 AM

Hi IIRF Community,

i installad IIRF2.1.msi on a Windows Server 2003 with IIS 6.0. My CakePHP App+Core is installed under E:\Folder\www.  ISS is configured to use Virtual Domains for this Hosting.

The core installation prints out the known mod_rewrite message "URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting"  

This is my first windows server installation, on a linux apache this is a common task and would be a snap ;-)

IIRF Status says ok and logfiles are empty. I am willing to work on that, but i would be realy happy, if someone could point me into some direction.

Here is my config (the one from your documentation):

 

RewriteLog e:\RCSIdm\logs\iirf
RewriteLogLevel 1
IterationLimit 10
MaxMatchCount 10
RewriteEngine ON
StatusInquiry ON

# If the URL references a file or directory in the webroot then do nothing
RewriteCond %{APPL_PHYSICAL_PATH}$1 -f [OR]
RewriteCond %{APPL_PHYSICAL_PATH}$1 -d
RewriteRule ^/RCSIdm/www/(app/webroot.*?)(\?.*)*$ - [I,L]

# If the URL does not reference a file or directory, and if the URL does not
# point to the webroot, rewrite the URL to insert the path to the webroot.
# Note: this rule is not needed if the site/vdir root points to the CakePHP
# webroot
RewriteCond %{APPL_PHYSICAL_PATH}$2 !-f
RewriteCond %{APPL_PHYSICAL_PATH}$2 !-d
RewriteCond $1 !^/RCSIdm/www/app/webroot.*$
RewriteRule ^(/path/to/cakesite/(.*?))(\?.*)$ /RCSIdm/www/app/webroot/$2 [I]

# If the URL does not reference a file or direcotry# rewrite the URL so
# CakePHP will parse the controller/action
RewriteCond %{APPL_PHYSICAL_PATH}$1 !-f
RewriteCond %{APPL_PHYSICAL_PATH}$1 !-d
RewriteRule ^(/RCSIdm/www/app/webroot(.*?))(\?.*)$ /RCSIdm/www/app/webroot/index.php?url=$2 [I,L,QSA]

 

Many Thank

inmae