You can add an extra rule to the .htaccess file in your webroot folder:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#for urls that don't need cake control
RewriteCond %{REQUEST_URI} ^/stats/(.*)$
RewriteRule ^.*$ - [L]
</IfModule>
Ryan Rose
CTO, Brightegg
One Technology Drive
Tolland, CT 06084
e: [EMAIL PROTECTED]
p: 860.730.2631
http://www.brightegg.com
Build, Manage and Market A Better Website
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of W Marsh
Sent: Sunday, June 01, 2008 4:54 PM
To: CakePHP
Subject: Accessing existing, non-cake stuff on my server
H all,
My host provides a statistics server at http://mysite.com/stats/. You
can probably see the problem - with a Cake app running, it tries to
find a controller named stats rather than taking me to the stats page.
I can't change where that page is, so what is the best way to get Cake
to ignore that particular URL? I suspect it's something to do with
mod_rewrite, but I don't want to go messing with that (I would
possibly get it wrong and introduce a bug) if there's a better way of
doing it (something in routing, perhaps?). I've looked but haven't
come up with anything useful yet.
Thanks.
- Wayne
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---