开发者

RegEx Files with .php .html and without dot (folder)

can someone help me writing an RegEx for Apache Mod Rewrite? i wannt do select all with .html and .php on the and, and all without dots (fol开发者_运维技巧ders)

RewriteCond %{REQUEST_URI} .(html|php)$

This is what i have at the moment, so i need to add something like "or doesn't contain any ."

:)


/.*(\.(html|php))?/

I think that would of select php and html files along folders. Good Luck

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜