For a rewrite that seems to work, I want to be sure itís really correct, lest there be some possible error Iím unaware of.
I'm using this:
to do this
RewriteRule ^(\d+)$ index.php?a=$1
RewriteRule ^([\D+]|[\D|\d]+)$ index.php [L]
The first rule handles numbers (with the index.php handling out-of-range numbers), and for thoroughness I want any invalid queries such as
slideshow/12 => slideshow/index.php$a=12
to go index.php with no query string.
Iím hoping the second ruleís condition says: ďany non-numeric or any mix of numeric and non-numericĒ. It seems to work.
Is it fully correct?