mod_rewrite problem with relative path css/js

后端 未结 4 1012
独厮守ぢ
独厮守ぢ 2021-01-05 14:55

Hi I have a problem. I want to get all requests to redirect to index file in main directory and I\'ve achieved this but there are problems with relative paths.
When I pu

4条回答
  •  情深已故
    2021-01-05 15:32

    It is no doubt better to use absolute path for static files (css, js, images etc). But if you lots of those instances in several pages then consider using HTML base tag to specify a default URL for relative paths. eg:

    
    

提交回复
热议问题