所以我有一个服务器上的数字海洋运行。 我试图在其上运行锚CMS。 因此,这是URL应该是什么样子http://colourity.com/posts/hello-world
。 但是,这似乎并没有工作。 当我尝试http://colourity.com/index.php/posts/hello-world
,一切工作正常。 但这里的问题是,我使用.htaccess
纠正这一点,这就是我有,
Options -indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
这应该的得到摆脱的index.php
,另外mod_rewrite
启用。 我也重新启动服务器,看看是否是有差别的,但它没有。 有任何想法吗?