Hey guys!

After searching through the discussion lists and talking on the irc i
was not able to get cake 1.2 and IIS playing nice together.. Then i
played around with the index.php and modified it so that is is working
for me, maybe you can benefit from it (but, of course its a really
dirty hack i think and i really dont know if everything works until
now but it seems so)

At first, modify your /app/config/core.php

define ('BASE_URL', env('SCRIPT_NAME').'?');
define ('SERVER_IIS', true);

Then move in to /index.php

leave everything as it is, just pick out the last one (after: /**
 * As mod_rewrite (or .htaccess files) is not working, we need to take
care
 * of what would normally be rewritten, i.e. the static files in app/
webroot/
 */)

replace it with code like this:

        if ($uri === '/fac-neu/' || $uri === '/fac-neu/index.php/') {
                $_GET['url'] = '/';
                require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
        } else {

                $elements=explode('(/fac-neu/index.php', $uri);

                if (!empty($elements[0])) {
                        $path = $elements[0];
                        $path = str_replace('/fac-neu/index.php/', '', $path);
                } else {
                        $path = '/';
                }

                $_GET['url']=$path;
                require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
        }

notice: my path to the project is not the root directory (http://
www.fac.at/fac-neu/) .. so if you want to use it in your root
directory i think you have to put those /fac-neu/ out and replace it
with a simple / ..

maybe you can benefit from it, i thought i want to share it with you.
it would be great if you have any comments or additions to this

regards,
daschl


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to