I have experience in running wordpress applications over IIS and it is very simple. After that I thought lets host the codeigniter application over IIS after that I found the error

codeigniter application run on IIS
After doing some official websites R&D I found the following solution, here are the steps for solving following queries
- How to host codeigniter application over IIS windows server
- How to resolve 404 File or directory not found over IIS windows serve
Steps:
- Verify you have IIS installed on your windows server
- Verify you have installed URL_REWRITE module in your IIS
IIS URL Rewrite module
You can download url rewrite module from there https://www.iis.net/downloads/microsoft/url-rewrite
- Add new website and add your codeigniter code in this website folder
- Click on website and in feature tab click on URL rewrite , this will open the following window
Import URL Rewrite Rules
- Add copy code form .htaccess file and paste into Rewrite Rules than click on apply button , this should be something like thisRewriteEngine on
RewriteCond $1 !^(index\.php|images|public|assets|uploads|themes|install|updates|asset|mob|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]#<FilesMatch “\.(jpg|jpeg|png|gif|swf|css)$”>
# Header set Cache-Control “max-age=604800, public”
#</FilesMatch>Import htaccess rewrite url
Now you can check your website it should working fine and should not give you 404 folder not found error
ENJOY your day, for help feel free to fill contact form
2 Comments
Comments are closed.