Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2007
    Posts
    91
    Thanks
    2
    Thanked 0 Times in 0 Posts

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

    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
    Code:
    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

    to new urls
    Code:
    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




    Please help guys what is the right htaccess for this
    Whats up

  • #2
    Regular Coder
    Join Date
    Jun 2010
    Posts
    132
    Thanks
    8
    Thanked 0 Times in 0 Posts
    You can see the page at http://corz.org/serv/tricks/htaccess2.php there are many examples there (and there is a topic about this in http://www.webhostingtalk.com/showthread.php?t=659415 )
    (Your pages must be .php ... but I am not sure about it...)
    Last edited by Tony M; 09-21-2010 at 05:42 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •