This is a very strange problem. I cannot the second rule in the root
.htaccess file to process:
RewriteRule (.*)    app/webroot/$1 [L]

However the first rule works fine:
RewriteRule ^$    app/webroot/ [L]

I know, because I renamed the root index.php file, and I was still
routed to app/webroot/index.php

This is a standard virtual host configuration, running on Apache
2.0.54, on Linux. Cake is 1.0.

Examples:

The following URL produces a 404:
http://augustana.diers.us/videos/edit/1

However these work just fine:
http://augustana.diers.us/app/videos/edit/1
http://augustana.diers.us/app/webroot/videos/edit/1

Now why in the world would the rule in app/.htaccess properly route to
/app/webroot/index.php, whereas the rule in /.htaccess doesn't? This is
maddening. Clearly mod_rewrite is loaded and functioning, or the other
rules would not process. I didn't screw with the .htaccess files,
although I did comment out the <IfModule mod_rewrite.c> lines just as a
test.

For the record, BASE_URL is undefined in app/config/core.php. If I
define it and rename the .htaccess files, everything does work as it
should, so this is not a cake problem as far as I have been able to
determine.

Here is the relevant config:

<VirtualHost *:80>
    ServerName augustana.diers.us
    Options -Indexes Includes FollowSymLinks MultiViews
    DocumentRoot /var/www/augustana.diers.us/htdocs
    Alias /favicon.ico "/var/www/localhost/htdocs/favicon.ico"
</VirtualHost>

<Directory "/var/www/augustana.diers.us/">
    AllowOverride All
    Options MultiViews -Indexes Includes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

The cake directory structure is in /var/www/augustana.diers.us/htdocs.

I'm about ready to upgrade Apache just for the hell of it, but I can't
imagine that's the issue.


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

Reply via email to