Thursday, May 27, 2010

CakePHP and WordPress

I know this has been touched on a few times, but I have an issue I
can't resolve or find a working answer to.

I have installed WordPress in /app/webroot/blog

Following various bits of advice I have added these lines to
the .htaccess file in Cake's root:

RedirectMatch temp ^/blog/wp-admin$ http://www.example.com/blog/wp-admin/

RewriteRule blog$ /blog/ [L]
RewriteRule blog/wp-admin$ /blog/wp-admin/ [L]

I have a subdomain, blog. So I ought to get to the blog via:
blog.example.com

This gives me a 500 Server error.

However, I can get to blog.example.com/wp-admin with no problem. And
sometimes, the straightforward subdomain to blog link works.

.htaccess files are a dark art to me. Can anyone shed some light
please?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

No comments: