Base URL - How to call the home link

前端 未结 5 798
囚心锁ツ
囚心锁ツ 2021-02-07 14:11

Here an example of my base URL


I would like to know how to call that base URL for t

5条回答
  •  一整个雨季
    2021-02-07 14:25

    What you need is the virtual directory name of your application/website.
    This is a server variable, and it is not possible to get it in HTML alone, you need some server side component, like PHP or ASP.NET.

    If you are in the root directory, you can try a relative link.
    So try using a . to indicate "from this folder"

    Home
    


    Should your question actually concern the opposite direction, do this:

    Home
    


    Or use an absolute link:

    Home
    

    Or use a canonical link

    Home
    

提交回复
热议问题