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 thisCode: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 asCode:slideshow/12 => slideshow/index.php$a=12
to go index.php with no query string.Code:slideshow/hgyt slideshow/23ab slideshow/23&
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?
Thank you.


Reply With Quote


Bookmarks