I have used pathauto to set url as http://domain.com/aaa/[nid].html before,now i want to change them to http://domain.com/bbb/[nid].html, how to solve these redirect program? must think with friendly to search engine spiders.

Is there any module can solve this work?

Comments

kingandy’s picture

If you have Path Redirect installed, Pathauto should give you the option to "create a redirect to the new alias" in the config page. All you'd have to do is set up the new alias pattern, and then edit and save each page on your site. That'll create the new /bbb/[nid].html aliases, and set up a 301 (moved permanently) redirect from the /aaa/[nid].html paths, which search engines should note and update their indices appropriately.

Obviously this isn't a great solution if you have a lot of content on your site. I'm afraid I don't know any way of doing it across the site simultaneously...

++Andy

laser pointer’s picture

Thanks your suggestions,i known that way use Path Redirect for it , but ,yes,i have more urls changes to redirect setting.

It looks like have no best way or specific module solve it.
How ever, thanks you all.

sp3boy’s picture

If you have pathauto installed there should be an option in the "Update options" select field "Update URL alias" in admin/content/node".

This performs bulk updates of node aliases and will invoke the path_redirect 301 redirect creation as described above if that option is set.