0
我在CakePHP的app/webroot/blog文件夹中安装了wordpress安装程序,通常访问我的www.example.com/blog/,但是当我进入一篇文章我失去了链接,例如我得到www.example.com/blog/app/webroot/blog/?p=1在CakePHP的我的app/webroot/blog文件夹中安装Wordpress
有没有解决方案来解决这个问题?我想我应该修改我的wordpress .htaccess,但我不知道要添加什么。
我的WordPress .htaccess文件是:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
我CakePHP的应用程序/的.htaccess是
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
我的CakePHP的应用程序/ Web根目录/的.htaccess是
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
</IfModule>
干杯
这[blog](http://www.balistupa.com/blog/2010/08/how-to-redirect-appwebrootblog-into-blog-wordpress-cakephp/)可以帮助你。 – Rikesh