(Easy) What is htaccess for Rewrite dynamics urls oldname-id.html to newname-id.html

Discussion in 'Apache' started by basketmen, Sep 17, 2010.

  1. #1
    I want to redirect Rewrite dynamics oldname-id.html to newname-id.html , because the file name is changed


    The file name is changed
    the id is dynamic numbers



    for example

    old urls
    http://www.domain.com/country-origin-Irish-page-1.html
    http://www.domain.com/country-origin-Irish-page-2.html
    http://www.domain.com/country-origin-Irish-page-3.html
    http://www.domain.com/country-origin-Irish-page-4.html
    and so on
    Code (markup):

    to new urls
    http://www.domain/country-origin-Irlandia,_Ireland,_Irish-page-1.html
    http://www.domain/country-origin-Irlandia,_Ireland,_Irish-page-2.html
    http://www.domain/country-origin-Irlandia,_Ireland,_Irish-page-3.html
    http://www.domain/country-origin-Irlandia,_Ireland,_Irish-page-4.html
    and so on
    Code (markup):




    Please help guys what is the right htaccess for this
     
    basketmen, Sep 17, 2010 IP