Case Insensitive URLs with mod_rewrite

后端 未结 3 2162
说谎
说谎 2020-11-27 08:09

I\'d like for any url that doesn\'t hit an existing file, to do a lookup on the other possible cases and see if those files exist, and if so, 302 to them.

If that\'s

3条回答
  •  轮回少年
    2020-11-27 08:40

    Look up the Apache module mod_negotiation. It does exactly what you want: http://httpd.apache.org/docs/2.0/mod/mod_negotiation.html#multiviews

    You can also pipe all requests to a single PHP file and let the PHP file do the checking for you.

提交回复
热议问题