0

I can load all of the pages in my local folder using localhost:8500/domain/pagename.cfm but it all loads as plain text and pictures. None of the CSS formatting is present - I'm mainly using Bootstrap 3.

I'm wondering if there's something in the ColdFusion Administrator (version 10) that I need to set up differently?

Everything looks great in the live view.

amphetamachine
  • 27,620
  • 12
  • 60
  • 72
Big Mike
  • 119
  • 10
  • 1
    Did you try with sample html page as basic sanity check? – Anit Kumar Sep 08 '14 at 17:41
  • Just did. Other ColdFusion sites work correctly (for the most part). I guess it's just a Bootstrap issue. – Big Mike Sep 08 '14 at 17:53
  • 5
    If you're using Chrome, open up the Developer Tools and check the Network tab for the 404 to see where it's trying to load the file. You've most likely got an incorrect path to the CSS file from the point of view of the website's root. – Adrian J. Moreno Sep 08 '14 at 17:54
  • 3
    The internal web server is case sensitive, even if it is running on Windows. You may want to check that – James A Mohler Sep 08 '14 at 19:08
  • Yup. That's the issue. Because I have multiple domains in my wwwroot folder, I have to define the domain in the URL (localhost:8500/domain/pagename.cfm). The local page is trying to pull the CSS from localhost:8500/css/bootstrap.css (without the domain specification). Is there any way around that? Or do I need to restructure my files anytime I want to locally test a CF site? – Big Mike Sep 08 '14 at 19:57
  • 2
    You could do something like and then reference like You could probably also use html's BASE tag to get this done, but it still needs a similar if statement. Just one option, of course you could structure differently. – Regular Jo Sep 09 '14 at 22:16

0 Answers0