質問

My MVC application can be accessed using the following three methods:

http://domain-name/app - Images and JS files are not loading

http://server-name/app - All content files are loading perfectly

http://ip-address/app - Images and JS files are not loading

Images and JS files are not loading when accessed through domain name and ip-address. All content files are loading perfectly using server name. Any thoughts on this?

正しい解決策はありません

他のヒント

Are you using absolute paths when referencing your images and js files in your views or layouts?

Using relative paths should resolve this issue:

<script src="~/Scripts/Mycript.js"></script>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top