I'm having some problems using zend framework 1.12 and wordpress at the same time..
I know the problem needs to be in the htaccess because zend framework and wordpress are working.
The problem:
if surf to localhost/blog
it redirects me to the url localhost/public_html/blog
. When that happens wordpress opens and says it can't find anything..
But if i open it with localhost/blog/hello-world
(where hello-world stand for a post) it works like a charm.
How can i make sure that if i'm surfing to localhost/blog
the index page of wordpress blog will show up and that i will not be redirected to localhost/public_html/blog
-> "not found" page.
my htaccess in public_html:
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^blog - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
and my htaccess in /public_html/blog/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
Thanks for reading and i hope someone can help me with this!
Greetings,
Cees