Problem:
I am in the process of moving a Magento 1.4.1.1 CE web site from Windows Server 2003 where it operates well to Windows Server 2012/IIS 8.5. .While the new site displays product info (not product images), there are no styles and JavaScript functions don't work. This is because files in /media/js and /media/css under our Magento store folder yield 404 errors. Buttons needing js in the admin for buttons like Save do not work so I have to make config changes in the database.
Solution attempts/debugging:
I have seen a number of articles on inaccessible css/js files and have tried what they suggested to no avail. Here' what we've tried:
I tried putting a test html "Hello World" file in /media/css directory and I also got a 404. Actually it redirects to the home page with a 404 title as expected because of the cms settings in the system. I do see the visit to the test page in the visitor logs in the Magento db.
Questions
Does anyone have any ideas for solving this problem? Is there anything in the db or in config.xml files that I would need to edit when changing web servers and web server accounts? Note that the new site uses the exact same domain and paths and both the web site files and database have been coped to the new site. I believe that php.ini is the same on both old and new servers.
TIA,
Steve Shier
Solved! Go to Solution.
Problem solved. There was a rewrite rule causing this. The rule had no error so it wasn't showing up in the error log. It was causing problems when the /media directory was accessed.
Steve
Hi, I'm very new to Magento and have the same problem (CSS does not load properly because of access issue). How can I resolve it? Can you please add detailed instructions?