I've solved a similar issue editing /.htaccess (cake 1.3.6)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/blog
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !^/blog
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
Luca
On 20/06/2011 17:26, chris wrote:
I realise that this appears to have been covered a few times, but I
can't seem to get it to work how other people have.
I'm trying to move an existing wordpress install, to be hosted on the
same domain as my cake app.
So i've copied the root of the existing blog.mysite.com to the /blog/
under the webroot of mysite.com
So my webroot is similar to this listing
blog/
css/
files/
img/
js/
.htaccess
css.php
index.php
So I can then access the wordpress site at www.mysite.com/blog and the
cake app still shows up for everything else www.mysite.com. However,
as soon as I try to visit a link in Wordpress such as
blog/2011/05/name-of-a-post
I get the cakePHP error message of
Missing Controller
Error: BlogController could not be found.
etc
Any ideas on what I need to change so cakePHP ignores all links that
are blog/..... I've tried a few htaccess settings, but none have
worked. But then, from the sounds of it, other people have this
working without any changes.
--
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