开发者

How can I combine this two htaccess rules?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜