我有一个网站是使用codeigniter框架设计的。对于板条箱博客页面我使用wordpress通过引用此链接click here如何更改codeigniter中的.htaccess文件以阅读wordpress博客?
使用此我已经创建了一个页面。但征求意见及其所有要 以下网址
http://localhost/mywebsite/blog/index.php/2016/04/29/my-new-blog/#respond
因为.htacces限制其显示404错误页面
下面是我已经试过我的.htaccess代码
RewriteEngine on
RewriteCond $1 !^(index\.php|asset|info\.php)
RewriteRule ^(.*)$ index.php?$1 [L]
RewriteRule ^(blog)$ index.php?$1 [L]
但它仍然不起作用
在这个链接'http:// localhost/mywebsite/blog/index.php/2016/04/29/my-new-blog /#respond'是'blog'子目录吗?我明白它是一个控制器,所以它应该在'index.php'之后。 – Tpojka