mod_rewrite problem with relative path css/js

后端 未结 4 1014
独厮守ぢ
独厮守ぢ 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:41

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . index.php [L]
    

    Should obviously work despite the comments.

    Try to add the RewriteLog and RewriteLogLevel directive to give us better details.

提交回复
热议问题