What kind of redirection does it do?
| Project: | Search 404 |
| Version: | 6.x-1.1 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | zyxware |
| Status: | active |
Jump to:
Hi,
I have setup search404 to automatically go to the page of the node if there is only one result.
But what kind of redirection does it do?
For instance, I'm migrating from my old website to the new one under drupal. I would like that if I go for instance to myoldsite.com/the-name-of-the-old-page.html, then it goes to mynewsite.com/the-name-of-the-new-page.html.
The name of the old and new pages are nearly the same, but could be a bit different, as the two websites do not use real url the same way. So I thought about .htaccess to put the same parameter to the new site that with the old one with a 301 code, and then using the search 404 in drupal to go to the real page.
But what I would like as well is that search engines do know this page is not the good one, and that they referr the good page after the search404 redirection. So I wonder, what kind of redirection do search404?
Thanks

#1
Hello Julien
The code that does this redirection is executed by drupal_goto (), the default redirect in drupal_goto () is 302 (Found) which is also the same which occurs in search404.
I hope that answers your question.
Regards
Zyxware
#2
Automatically closed -- issue fixed for two weeks with no activity.
#3
Thanks Zyxware, could this be changed to 301 permanent? Or could we have an option to set this?
Google Webmaster reports duplicate titles for old 404 pages that were 302-d directly to new content found by search404.