Search code examples
phpcodeigniterazureiis-7codeigniter-2

CSS is not working in Codeigniter on azure cloud service


I am new to azure cloud. I have a project written in codeigniter which is running well on local machine on iis server but when i deployed on azure everything is working but css js and image file is not getting load. I am suffering from this issue from 2 days. Need your valuable help.

error like : IIS 7.5 Detailed Error - 404.0 - Not Found ,Error Code 0x80070002
Requested URL http://localhost:80/resources/scripts/form-validation.js
Physical Path C:\inetpub\wwwroot\resources\scripts\form-validation.js
Home page URL is : localhost/abc

its not possible to do modification of file.I need help for iis setup or config file or php.ini file change.This program is runing in virtual directory of default site.


Solution

  • Problem Solved Actually this was problem of iis server.I was using virtual directory instead of iis web site.In virtual dierctory css file locataion was accessed from localhost not localhost\abc. It was problem of iis server virtual directory.