mod_rewrite: add trailing slash?

前端 未结 4 988
心在旅途
心在旅途 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:35

    Don't bother with Mod Rewrite, there is a directive for it

    
      DirectorySlash On
      SetHandler some-handler
    
    

    http://httpd.apache.org/docs/2.2/mod/mod_dir.html

提交回复
热议问题