我正在开发代码点火器当我在examplep服务器上使用它时,它与此Url配合得很好localhost.com/realestate/index.php?类别/方法/参数
但当我把类似的东西放在godaddy主机上时
相同的Url段显示代码点火器404错误
为文件夹添加.htaccess
。以下是一些结果查看所有链接。
主机区分大小写,因此要小心命名控制器和型号名称以及
DirectoryIndex index.php index.html
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteBase /yourfoler/
RewriteCond $1 !^(index'.php|assets|install|update)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# For godady Shared Hosting Server uncomment the line below
RewriteRule ^(.*)$ index.php?/$1 [L]
# Please comment this if you have uncommented the above
# RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]
</IfModule>
localhost.com/realestate/index.php?class/method/parameter
而不是这样,您可以用下面的htacess 来像这样运行localhost.com/realestate/class/method/parameter