Am I missing a flag or something? RewriteRule tip needed

Posted by Kirill on Stack Overflow See other posts from Stack Overflow or by Kirill
Published on 2010-06-12T21:26:12Z Indexed on 2010/06/12 21:32 UTC
Read the original article Hit count: 295

Filed under:
|
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?p=$1&l=$2
RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/$ index.php?p=$1&l=$2

this works fine if I do site.com/param_one/param_two/, but returns a 404 when I omit param_two. I'm a newbie to routing requests with htaccess, is there a simple quick fix?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite