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 '/'"
精彩评论