Hello,
I have a rather unconventional Cake setup, and since I'm not
an .htaccess and mod_rewrite expert, I'm looking for some help these
issues.
This is my situation:
/app -> Main site app folder
/cake
/sub
/app -> sub site app folder
/cake
/forum -> non-Cake forum
So I have 2 Cake projects, each with it's one Cake core. (Yes, it's
possible to drive to applications with the same core, but let's say I
have my reasons not to do this.)
The .htaccess in /app (main site) looks like this:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 ^(sub)
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
If I understand it correctly, then the line 'RewriteCond $1 ^(sub)'
tell the mod_rewrite module to skip the rules if the requested URL
starts with 'sub'.
I have two problems:
1. The URL http://www.domain.com/sub/ shows the sub site, which is OK.
However, when I omit the trailing slash (http://www.domain.com/sub),
it doesn't work, and the main site loads up. How do I change the
RewriteCond?
2. You'll notice that I have a forum in /sub/forum. This will contain
a 'standalone' forum. It will not use Cake. Which .htaccess file do I
modify, and how, in order to let http://www.domain.com/sub/forum point
to that directory? I've tried this in /sub/.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 ^(sub/forum)
RewriteBase /sub
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
But that doesn't work. Any pointers?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---