Hi, It's me, back again for help on url rewrite! It seems there has been a change from 2.0 to 2.1 and ISAPI_rewrite no longer works correctly. This is my current setup
Windows Server 2003 IIS 6 PHP 5.4.3 ISAPI_rewrite 3.1.0.88 My app is in a virtual directory 'report_monitor'. I am attempting to access this url http://myserver/report_monitor/scheduled_reports/showMonth The htaccess file in my app folder is <IfModule mod_rewrite.c> RewriteEngine on RewriteBase /report_monitor RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule> The htaccess in the webroot is <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /report_monitor RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </IfModule> That configuration always gets me the default app page where it says everything is OK (version, tmp, database) and the css is correct, but it never loads the page specified in the url. If I use the htaccess config that I had for version 2.0 (see below) then I get my application's page but the css link is wrong <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,L] </IfModule> Example incorrect css link, note the "index.php" in the href. <link rel="stylesheet" type="text/css" href="/report_monitor/index.php/scheduled_reports/css/reset.css <view-source:http://reyfis01/report_monitor/index.php/scheduled_reports/css/reset.css>" /> This might be useful, it is the $_SERVER variable contents from PHP array( 'ALLUSERSPROFILE' => 'C:\Documents and Settings\All Users', 'APP_POOL_ID' => 'DefaultAppPool', 'CLASSPATH' => 'C:\Program Files\VERITAS\Backup Exec\NT\ECM\bumodule.jar;C:\Program Files\VERITAS\Backup Exec\NT\ECM\LOG4J-CORE.JAR;C:\Program Files\VERITAS\Backup Exec\NT\ECM\LOG4J.JAR;.', 'ClusterLog' => 'C:\WINDOWS\Cluster\cluster.log', 'CommonProgramFiles' => 'C:\Program Files\Common Files', 'COMPUTERNAME' => 'REYFIS01', 'ComSpec' => 'C:\WINDOWS\system32\cmd.exe', 'DEFLOGDIR' => 'C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection', 'FP_NO_HOST_CHECK' => 'NO', 'NUMBER_OF_PROCESSORS' => '8', 'OS' => 'Windows_NT', 'OvAgentDir' => 'C:\Program Files\HP OpenView\data\', 'OvDataDir' => 'C:\Program Files\HP OpenView\data\', 'OvInstallDir' => 'C:\Program Files\HP OpenView\', 'Path' => 'C:\Program Files\Support Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\oma\bin;C:\Program Files\Dell\SysMgt\Array Manager;C:\Program Files\Dell\SysMgt\RAC;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\MySQL\mysql-5.0.51a-win32\bin;C:\Program Files\Dell\SysMgt\oma\oldiags\bin;C:\Program Files\OmniBack\bin\;C:\Program Files\HP OpenView\bin;C:\Program Files\HP OpenView\bin\OpC;', 'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.VBS', 'PHPRC' => 'C:\PHP\', 'PROCESSOR_ARCHITECTURE' => 'x86', 'PROCESSOR_IDENTIFIER' => 'x86 Family 15 Model 4 Stepping 1, GenuineIntel', 'PROCESSOR_LEVEL' => '15', 'PROCESSOR_REVISION' => '0401', 'ProgramFiles' => 'C:\Program Files', 'SystemDrive' => 'C:', 'SystemRoot' => 'C:\WINDOWS', 'TEMP' => 'C:\WINDOWS\TEMP', 'TMP' => 'C:\WINDOWS\TEMP', 'USERPROFILE' => 'C:\Documents and Settings\Default User', 'VSEDEFLOGDIR' => 'C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection', 'windir' => 'C:\WINDOWS', 'HTTP_CACHE_CONTROL' => 'max-age=0', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5', 'HTTP_COOKIE' => 'CakeCookie[Shout]=Q2FrZQ%3D%3D.RVuSTH3RtEFfpaoMZ0m%2Ffx924R4J8S4t9BSvO5HTtr72wg%3D%3D; CAKEPHP=2uev49q5kvqjv8usqcq713d3r5', 'HTTP_HOST' => 'reyfis01', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0', 'HTTP_X_REWRITE_URL' => '/report_monitor/scheduled_reports/showMonth', 'AUTH_TYPE' => '', 'AUTH_PASSWORD' => '', 'AUTH_USER' => '', 'CERT_COOKIE' => '', 'CERT_FLAGS' => '', 'CERT_ISSUER' => '', 'CERT_SERIALNUMBER' => '', 'CERT_SUBJECT' => '', 'CONTENT_LENGTH' => '0', 'CONTENT_TYPE' => '', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'off', 'HTTPS_KEYSIZE' => '', 'HTTPS_SECRETKEYSIZE' => '', 'HTTPS_SERVER_ISSUER' => '', 'HTTPS_SERVER_SUBJECT' => '', 'INSTANCE_ID' => '1', 'LOCAL_ADDR' => 'x.x.x.x', 'LOGON_USER' => '', 'PATH_INFO' => '/scheduled_reports/showMonth', 'PATH_TRANSLATED' => 'D:\WebSites\cakephp-2.1.2\report_monitor\webroot\index.php\scheduled_reports\showMonth', 'QUERY_STRING' => '', 'REMOTE_ADDR' => 'x.x.x.x', 'REMOTE_HOST' => 'x.x.x.x', 'REMOTE_USER' => '', 'REQUEST_METHOD' => 'GET', 'SCRIPT_NAME' => '/report_monitor/index.php', 'SERVER_NAME' => 'reyfis01', 'SERVER_PORT' => '80', 'SERVER_PORT_SECURE' => '0', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'Microsoft-IIS/6.0', 'UNMAPPED_REMOTE_USER' => '', 'ORIG_PATH_INFO' => '/report_monitor/index.php/scheduled_reports/showMonth', 'SCRIPT_FILENAME' => 'D:\WebSites\cakephp-2.1.2\report_monitor\webroot\index.php', 'PHP_SELF' => '/report_monitor/index.php/scheduled_reports/showMonth', 'REQUEST_TIME_FLOAT' => (float) 1338835824.5241, 'REQUEST_TIME' => (int) 1338835824 ) So once again I am asking for help. I hope I'm not getting orphaned due to using such an old server! Thanks Matt -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
