...

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



basketmen
09-17-2010, 04:53 PM
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


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





Please help guys what is the right htaccess for this

Tony M
09-21-2010, 05:36 PM
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 ) :thumbsup:
(Your pages must be .php ... but I am not sure about it...)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum