I've basically written my own shortlink php script.
The urls come in like this: http://short.com/8359
I have this in my .htaccess file:
RewriteRule ^([0-9]*)$ index.php?id=$1 [L]
which gives me the number as $id and points everything to the index.php. I take it from there and process it in my php script to get the user to the right location.
All works great..... except....
I have some old shortlink urls in the wild that are like this:
and I need to account for those and get them to the right place.
How can I change the .htaccess file so that if an old style url is used, I can take that number and use it as the value of $id for use in index.php?
Does that make sense?
Thanks for any help, Chris