I have the following problem:
The URL is http://www.myhomeurl.com/application1/ , and the base is:
<base href="http://www.myhomeurl.com/"/>
All resources like images, css and javascript will be:
http://www.myhomeurl.com/css/myfile.css http://www.myhomeurl.com/js/myscript.js http://www.myhomeurl.com/images/img.jpg
BUT, the link will be to "application1", for example:
http://www.myhomeurl.com/application1/page1.html http://www.myhomeurl.com/application1/page2.html http://www.myhomeurl.com/application1/page3.html
The question arises: how to use the base URL for resources (for example, css, js, etc.) and use the base / application1 links for page links?
Here is the problem when I have:
<a href="page1.html">Click me!</a>
When a user clicks on this page, the page will be:
http://www.myhomeurl.com/page1.html
but not:
http://www.myhomeurl.com/application1/page1.html
source share