Base URL in .htaccess

后端 未结 4 1604
故里飘歌
故里飘歌 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条回答
  •  甜味超标
    2020-12-19 17:30

    You're looking for the html base tag. To quote the docs:

    For example, given the following BASE declaration and A declaration:

     
      
           
          Our Products    
            
       
           
           

    Have you seen our Bird Cages?

    the relative URI "../cages/birds.gif" would resolve to:

    http://www.aviary.com/cages/birds.gif

提交回复
热议问题