Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice if there was an option that instead of sending a 301 redirect, there could be a facility for using the location: header to display the page directly and avoid the extra indirection. Thanks for the nice module by the way.
Comments
Comment #1
Dave ReidThat's how redirections work. drupal_goto() writes a location header.
Comment #2
pedrochristopher CreditAttribution: pedrochristopher commentedThanks Dave for the quick response. Sorry, I've clearly got my head twisted the wrong way about this header issue. Is there not a way to have the actual desired page to be displayed without the 301 redirect, but to indicate the correct URL in the header somewhat? You're clearly right about the location: header, I thought I remembered a different one, sorry for the confusion.
Edited: Found it. It's called Content-location: as in the following example for instance http://chriscant.phdcc.com/2009/04/content-location-http-header-for.html
Comment #3
pedrochristopher CreditAttribution: pedrochristopher commentedComment #4
nicholasThompsonI fail to see what this head actually does.
You might be referring to the Canonical meta tag which I believe Nodewords already implements.
Comment #5
nicholasThompsonIt looks like the Content Location header is almost synonymous with the Canonical link in the HEAD (rather than HEADER).
This has been added to DRUPAL-6--1. Both the Canonical Link and the Content-Location header are options which can be enabled. Each one simple mimics the URL at the moment - this needs work I think as both "node/1" and "node/1?page=1" both show the same content but have unique canonical and content-location values. I cant simply remove the page from the Query string as there may be a block or listing on the page somewhere which actually USES the pager (eg maybe an organic group homepage?).
However, that's a different issue (cleaning up the Query String), so for now this has been committed and I need to port it to D5 and D7.
Comment #6
nicholasThompsonFurther Reading link: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14
Comment #7
nicholasThompsonPorted to 7.x, only 5.x remains.