mod_rewrite: add trailing slash?

前端 未结 4 984
心在旅途
心在旅途 2020-12-31 11:41

I am using a .htaccess file to direct requests for a directory to a custom php file that provides info about that directory (and i want the url displayed by the browser to n

4条回答
  •  一向
    一向 (楼主)
    2020-12-31 12:36

    This line:

    RewriteCond %{REQUEST_FILENAME} -D
    

    Should have been:

    RewriteCond %{REQUEST_FILENAME} -d
    

提交回复
热议问题