HTAccess - full url to new url with a random number

Discussion in 'Programming' started by muiomuio, Apr 28, 2009.

  1. #1
    The Question:
    I have about 186 urls I need to redirect but the new url has a file name + a random number generated when the file was uploaded in a new CMS.

    For example:
    I had a file called: 10_1_2.pdf and on the new website the same file is 10_1_2_1234981.pdf

    The 1234981 is a random number that and the files are not a sequence (it's not 1234981, 1234982, etc).

    Is there a way to redirect the 186 urls automatically or do I need the 2 urls and manual redirect it on the htaccess file?
     
    muiomuio, Apr 28, 2009 IP