Forum Moderators: Robert Charlton & goodroi
...but then the second one is "one level deeper" from root ... what do you think?
I'd put the unique reference number up front, makes for easier RewriteRules.
RewriteRule ^(.*)-([0-9]+)$ /page.php?id=$2 [L,QSA] Either verify the words and redirect to the correct URL if they are incorrect in any way or else return 404 for incorrect words.
example.com/overpriced-junk-will-make-your-hair-fall-out/4457226272/ or worse. RewriteRule ^([0-9]+)-(.*) /page.php?id=$1&text=$2 [L,QSA] Which will rank better nowadays?
example.com/john-miller-cars-inc-438332
or
example.com/john-miller-cars-inc/438332
URLs ending with a slash are defined as "folders" in the HTTP specs.
If it isn't a folder, don't add a trailing slash.
example.com/427272-this-great-produ...src=" to the correct www.example.com/427272-this-great-product URL.