Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Virtual host necessary for simple root-relative URLs to work? (no replies)

$
0
0
In XAMPP, one has to create a virtual host to make root-relative URLs work locally as well. Without it, a link like

<script src="/x-files/pretext-script.js"></script>

will work fine on the remote server, but on the local server will throw an error:

Loading failed for the <script> with source "localhost/x-files/pretext-script.js"

How is that in WAMP?

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>