Results 1 to 6 of 6
Thread: Rewrite rule for invalid query
Feb 22, 2013, 09:35 #1
- Join Date
- Nov 2011
- 0 Post(s)
- 0 Thread(s)
Rewrite rule for invalid query
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:
RewriteRule ^(\d+)$ index.php?a=$1 RewriteRule ^([\D+]|[\D|\d]+)$ index.php [L]
slideshow/12 => slideshow/index.php$a=12
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?