Ok, I don't know exactly, but you would use an .htaccess script I
expect to get the address sent to a php script, then from that use the
substr command to take out the main url leaving you with 1234 which you
could put into a variable. You could just have something like this
though : streetfish.co.uk/link?id=1234 much easier.