将CodeIgniter项目本地传输到服务器,管理面板不工作

I create CodeIgniter project on my local machine (Running perfectly), then I uploaded to a server with its database but I am facing the problem of not found an error while opening admin panel.

I changed config file(for base URL), database.php(for database connection). but I don't know what to change in the .htaccess file, I took a default CodeIgniter .htaccess file but it is showing not found error. htaccess file :

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /crescent_test/ad_crescent/
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?/$1 [L]
 </IfModule>
 <IfModule !mod_rewrite.c>
   ErrorDocument 404 /index.php
 </IfModule>

Try this updated code.

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond $1 !^(index\.php|resources|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L,QSA] 
 </IfModule>

if this does not work then visit below link:

Page isn't working and returns HTTP error 500 in CodeIgniter

you can try this:

add htaccess file YOUR_ADMIN_FLODER root

<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /YOUR_ADMIN_FLODER_NAME/
    Options -Indexes

    RewriteCond %{REQUEST_URI} ^system.*

    RewriteRule ^(.*)$ /YOUR_ADMIN_FLODER_NAME/index.php?/$1 [L]

    RewriteCond %{REQUEST_URI} ^application.*

    RewriteRule ^(.*)$ /YOUR_ADMIN_FLODER_NAME/index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ /YOUR_ADMIN_FLODER_NAME/index.php?/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /YOUR_ADMIN_FLODER_NAME/index.php
</IfModule>