Rewriteengine in .htaccess to catch files not ending in html

后端 未结 3 438
情书的邮戳
情书的邮戳 2021-01-18 23:34

I\'d like to use mod rewrite in to convert web page addresses like /directory to /directory/index.html, in a standard LAMP hosting situatio

3条回答
  •  耶瑟儿~
    2021-01-19 00:27

    Well, for actually making it work, you could just use a negative lookbehind instead of a lookahead:

    RewriteRule ^(.*)(?

    I'm not sure offhand why adding the 'x' makes it work, I'll edit if I figure it out.

提交回复
热议问题