.htaccess 需要codeigniter中子域的正确.htacces

.htaccess 需要codeigniter中子域的正确.htacces,.htaccess,mod-rewrite,for-loop,subdomain,.htaccess,Mod Rewrite,For Loop,Subdomain,我们在codeigniter中开发了web应用程序,在创建名为inventory.domainname.com的子域后,我们尝试在linux服务器上托管 我已经部署了我的应用程序 文件夹结构 public_html/ sub-domain-name/ application/ system/ js/ css/ img/ public/ .htaccess index.php 我的.htaccess

我们在
codeigniter
中开发了web应用程序,在创建名为
inventory.domainname.com
的子域后,我们尝试在linux服务器上托管

我已经部署了我的应用程序

文件夹结构

public_html/
  sub-domain-name/
    application/
    system/
    js/
    css/
    img/        
    public/
       .htaccess
        index.php
我的.htaccess文件

Options +FollowSymLinks
RewriteEngine on

# Send request via index.php
RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php/$1 [L]


它在本地机器中工作正常,我已经更改了配置中的所有项。但它仍然抛出404错误。我尝试了很多,也阅读了stackoverflow中提供的所有解决方案,但仍然找不到解决方案。请帮帮我。

您正在尝试访问
http://yourdomain.com/something
http://yourdomain.com/public/something
?我已将文档根目录设置为public\u html/子域名/public/。在我的索引文件中,我更改了系统和应用程序文件夹路径。当我访问需要导航的默认控制器时,我在routes文件中提到。谢谢你的回复。