I have a lot of duplicated pages with parameters because an anarchic short´s url methodology: real urls: http://mydomain/forum?action=viewthread&id=5665 http://mydomain/forum?action=viewthread&id=5665&post=12 old url´s: http://mydomain/forum-id5665.html http://mydomain/forum-id5665-post12.html new url´s: http://mydomain/travelforum-id5665.html http://mydomain/travelforum-id5665-post12.html and so on... I want to permanent redirect (301) old urls to new url´s but the problem is that they have prameters How can I do this? thanks a lot
Can you post the contents of your current .htaccess file? It should just be a case of adding the extra "travel" keyword into it.
I don´t want to add more rewrites, I just want to redirect this: http://mydomain/forum-id5665-post12.html to this: http://mydomain/travelforum-id5665-post12.html but the proble is that 5665 and 12 are parameters so they change
RedirectMatch 301 ^/forum\-(.*)\.html$ http://domain.com/travelforum-$1.html RedirectMatch 301 ^/forum\-(.*)\-(.*)\.html$ http://domain.com/travelforum-$1-$2.html Code (markup): Tell me if it works.