开发者

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

开发者 https://www.devze.com 2023-01-31 07:14 出处:网络
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)

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

精彩评论

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