php - .htaccess rewrites but doesn't capture -
my .htaccess file simple:
rewriteengine on rewriterule ^([0-9]+)/?.*$ view.php?id=$1 [l] rewriterule ^delete/([0-9]+)/?$ delete.php?id=$1 [l]
the first rule works perfectly. when go http://userless.net/123 request sent view.php , can access id $_get['id']
. second rule rewrites fine too, sends http://userless.net/delete/123 delete.php, id not captured!!! $_get['id']
not set. how can similar , yet 1 work , other fail? missing?
this due multiviews
option turned on default. can turn off using this:
options -multiviews rewriteengine on rewriterule ^([0-9]+) view.php?id=$1 [l,qsa] rewriterule ^delete/([0-9]+)/?$ delete.php?id=$1 [l,qsa,nc]
Comments
Post a Comment