drbigfresh Posted July 21, 2007 Share Posted July 21, 2007 I have a simple rule for my site: RewriteRule showquestions/(.*)/(.*)/(.*)/(.*)/$ /nursingfaqs/showquestions.php?$1=$2&$3=$4 that converts showquestions.php?showcatid=123&page=3 into: /nursingfaqs/showquestions/showcatid/25/page/3/ and it works fine, but the problem is that I don't always have the page=x part... sometimes the page is called is called without it, an I can't figure out how to write the rule so that the page=x part is optional.... any help is much appreciated. Thanks, Scott. Quote Link to comment Share on other sites More sharing options...
hackerkts Posted July 22, 2007 Share Posted July 22, 2007 RewriteRule ^showquestions/(.*)/(.*)/(.*)/(.*)?/?$ /nursingfaqs/showquestions.php?$1=$2&$3=$4 ? means optional Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.