CodeIgniter Forums
htaccess do not work for subdomain in codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: htaccess do not work for subdomain in codeigniter (/showthread.php?tid=68255)



htaccess do not work for subdomain in codeigniter - nkhan - 06-16-2017

I have a subdomain

http://codeigniter.akbarwebtech.com

my htaccess
Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /
 

   RewriteCond %{REQUEST_URI} ^system.*
   RewriteRule ^(.*)$ /index.php?/$1 [L]


   RewriteCond %{REQUEST_URI} ^application.*
   RewriteRule ^(.*)$ /index.php?/$1 [L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>
   # If we don't have mod_rewrite installed, all 404's
   # can be sent to index.php, and everything works as normal.
   # Submitted by: ElliotHaughin

   ErrorDocument 404 /index.php
</IfModule>

What wrong I have done. 

I getting flowing errors on page 

http://prntscr.com/fkf9lg


Please Help Me

Thanks.


RE: htaccess do not work for subdomain in codeigniter - InsiteFX - 06-16-2017

Does it work without the .htaccess file?