开发者

How can I combine this two htaccess rules?

开发者 https://www.devze.com 2023-04-07 13:09 出处:网络
I have two conditions for the pages /portfolio and /portfolio/开发者_C百科 RewriteRule ^portfolio$ index.php?p=portfolio&%{QUERY_STRING}

I have two conditions for the pages /portfolio and /portfolio/

开发者_C百科
RewriteRule ^portfolio$ index.php?p=portfolio&%{QUERY_STRING}
RewriteRule ^portfolio/$ index.php?p=portfolio&%{QUERY_STRING}

Is there a possibility to combine this conditions?


RewriteRule ^portfolio/?$ index.php?p=portfolio&%{QUERY_STRING}

the ? says "exactly 0 or 1 '/'"

0

精彩评论

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