I have two nodes, node/241 with a URL alias of "solutions", and node/45 with a URL alias of "hybrid"

In node/45/edit I have added a URL redirect from node/241, so that "/solutions" gets redirected to "/hybrid"

The problem is, boost caches "/solutions" as a completely blank page, and /solutions shows just a blank page and does not redirect.

Adding the URL to Boost's list of excluded URL's does solve this issue, but redirected URL's should be excluded automatically.

Comments

Anonymous’s picture

Assigned: Unassigned »

Look in the latest version of boost under the related modules tab, and there is global redirect, that may solve the problem.This probably warrants further investigation as that should redirect before meeting boost.

Anonymous’s picture

Same here.

  • Global Redirect 7.x-1.5
  • Redirect 7.x-1.0-rc1
  • Boost 7.x-1.0-beta2

On the admin/config/search/redirect/settings Redirect settings page there is an option that seems to be related:

Allow redirects to be saved into the page cache.
This feature requires Cache pages for anonymous users to be enabled and the $conf['page_cache_invoke_hooks'] variable to be TRUE.

But of course "Cache pages for anonymous users" is not enabled, as per Boost requirements.

Anonymous’s picture

Please give me an example page, but Redirect 7.x-1.0-rc1 is not on our module list (terrible memory, I wrote out the list).

Anonymous’s picture

Thanks for your reply. I forgot to mention that I also use Domain Access. :)

Alas, I can't give you an example page because there is no public test site and pages on the live site can't be redirected as long as the redirect is not working.

The first time I access the redirected page as an anonymous user, the redirect works and I end up on the target page as expected. The second time I remain on the source URL, and get a blank page, with only one line, the Boost signature in the HTML source:

!-- Page cached by Boost @ 2013-02-15 10:33:44, expires @ 2013-02-15 11:03:44, lifetime 30 perc -->

FYI, these are the request and response headers:

Request URL:http://my.domain.com/my/path
Request Method:GET
Status Code:304 Not Modified

Request Headers
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:UTF-8,*;q=0.5
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en,hu;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Cookie:Drupal.tableDrag.showWeight=0; cTest=1; resDone20101213=1; has_js=1; __utma=202898705.548367603.1358163143.1359453488.1360920337.4; __utmb=202898705.4.10.1360920337; __utmc=202898705; __utmz=202898705.1358163143.1.1.utmcsr=my.domain.com|utmccn=(referral)|utmcmd=referral|utmcct=/admin/reports/security-review/help/security_review/field; __utmv=202898705.|1=role=n%C3%A9vtelen%20l%C3%A1togat%C3%B3=1
Host:my.domain.com
If-Modified-Since:Fri, 15 Feb 2013 09:33:45 GMT
If-None-Match:"65-4d5c012577040"
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.70 Safari/537.17

Response Headers
Connection:Keep-Alive
Date:Fri, 15 Feb 2013 09:34:52 GMT
ETag:"65-4d5c012577040"
Keep-Alive:timeout=15, max=97
Server:Apache/2.2.16 (Debian)
Vary:Accept-Encoding
Anonymous’s picture

This is very expected. The first time you visit a page then you see it because your browser was redirected, but in the background Boost has cached the redirect so that you get nothing the second time because it outputs what it did when you where redirected but as an html page, not with the headers.

Basically why the redirect ? can you not use url aliases instead ? possibly boost should be checking the redirect status sent out but technically it may not be possible with the redirect module.

Philip.

Anonymous’s picture

The site is sort of a Yellow Pages directory, and oftentimes companies move, change name, users upload wrong data that gets into the URL via Pathauto patterns, etc. And in those cases we don't want to simply give a 404 on the old URL as it hurts our SEO, but to redirect to the new URL.

For example, on this page we list doctors offices in a district clinic, and for SEO considerations the doctor's name is part of the URL. But doctors come and go all the time. When the consulting room is taken over by a new doc, along with all the patients, we want to change the title, and the URL, without loosing the incoming traffic from search engines or the bookmarks in patients' browsers.

robloach’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev

This occurs on 7.x-1.x-dev as well.

Anonymous’s picture

In node/45/edit I have added a URL redirect from node/241, so that "/solutions" gets redirected to "/hybrid"

Why would you wish to do that when you could do another URL alias, why the need for the middle page. Redirects are not good with boost, boost works as designed as it caches the output, but in the case of a redirect the output is no html. You could use the boost options to ignore that specific node if you really needed an intermediate page.

derekw’s picture

Was having the same problem, and applied #3 patch from here: https://drupal.org/node/1176534#comment-4571358

and the redirect/blank page problem went away.

(#2 patch is already in Dev but wasn't helping me.)

Anonymous’s picture

Thank you for the information.