Base URL in .htaccess

后端 未结 4 1595
故里飘歌
故里飘歌 2020-12-19 16:42

I wonder if this is possible to tell via .htaccess or any other manners to set a base URL.

Example

My CSS in the index.php is set like this

         


        
4条回答
  •  萌比男神i
    2020-12-19 17:30

    Use Base URL, for example:-

    
    
    
    
    
    
    
    
     - Notice that we have only specified a relative address for the image. Since we have specified a base URL in the head section, the browser will look for the image at "http://www.w3schools.com/images/stickman.gif"
    

    Don't use W3Schools - Notice that the link opens in a new window, even if it has no target="_blank" attribute. This is because the target attribute of the base element is set to "_blank".

提交回复
热议问题