这是我上传到在线服务器的第一个应用程序。我在CodeIgniter 3.0.1上创建了应用程序并将其上载到000webhost.com。但问题是,我的链接没有被路由。我在网上检查过,我的.htacess
文件似乎是正确的。我检查了这个问题My .htaccess file is not working,我遇到了和他一样的问题,但是正确的答案没有奏效。CodeIgniter不在服务器上路由
我的继承人.htacess
文件
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|public|images|css|js|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]
whatz你的错误?你想达到什么? –
您需要在根文件夹中为css,js等创建一个名为“public”的文件夹。 –
您能否提供错误信息?是500错误还是别的? –