Letters and numbers

New to mod_rewrite? This is a good place to start.

Letters and numbers

Postby graham23s » Sun Nov 22, 2009 3:03 am

Hi Guys,

For the last few months i have been using this in my .htaccess file:

Code: Select all
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^[^/]+-([0-9]+)\.html$ product-information.php?id=$1 [QSA,L]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([0-9]+)-[^/]+\.html$ category.php?cat-id=$1 [QSA,L]

Which is working great! but some of my product id's look like: U3V11Z7IEZA3S4 now a combination of letters and number i can't seem to figure out how the code should be ammended to allow letters and numbers.

any help would be appreciated.

thanks guys

Posts: 8
Joined: Sun Apr 26, 2009 2:05 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 6 guests