Setting up rel canonical with drupal

Hi
i wanted to add a rel canonical tag to all pages on my site
inside page.tpl.php , i added:

$link1= request_uri();
$link2= 'https://www.mysite.com' . $link1;
print '<link rel="canonical" href="' .$link2 .'"/>';

now the problem is that whatever URL is typed the canonical link changes

Drupal 6 PDF display problem in Chome [fixed]

Just in case anyone is having the same problem: PDF files that would not display properly in Chrome (but OK in Firefox).

Symtoms

  • This seems to be a known problem in Chrome.
  • It is not only Drupal
  • My Apache server log is also showing a 416 error "Requested Range Not Satisfiable"
  • Apparently due to Chrome requesting more bytes of data than the server provies

Solution

In my Drupal .htaccess file, I added the following lines at the top:

  • Header set Accept-Ranges none
  • RequestHeader unset Range

Content appears twice when i click edit

I have a weird problem with my drupal

When i click edit , for book pages or pages, i see the content twice (all content)

if i clicked submit the article appears two times ! like 2 exact copies above each other

in the view mode it appears normal as long as i didn't submit the duplicate content

any ideas?

Somebody please help! Can't log in as admin anymore, log in module gone!... (OAuth Connector)

Hi,

As the title says - I can't log in as administrator over my own website anymore...
We're using the OAuth connector module to be able to log in with our google account and it's the only log in we use.
Unfortunately, the button has completely disappeared and I have no clue why.

The simple log in should look like this:
http://imgur.com/a/DH9By

But the button is gone and now it looks like this:
http://imgur.com/a/Ospj7

Problems accessing admin area after enabling SSL

Hi
i migrated to SSL then added those lines to .htacess

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.)?my2nddomain\.com$ [NC]
RewriteRule ^ https://www.mysite.com%{REQUEST_URI} [NE,L,R=301]

right after that the admin area became inaccessible giving error saying incorrect redirect
rest of site worked fine

so I added this line

RewriteCond %{REQUEST_URI} !^/admin

Redirect page

We have a TinyURL that points to an incorrect page on our site, i.e., it points to samplesite.com/Books and it really should be pointing to samplesite.com/BestBooks. Can we create the Books page and have it automatically redirect to the BestBooks page somehow?

The actual URLs are more complicated than this of course and include many existing pages with variations by year.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x