|
The bretteleben.de "Canonical URL" Module for Joomla 1.5 allows to set selective the - supported by Google from this month on - "Canonical URLs" in the HEAD of single Pages. This helps to prevent being punished for delivering DuplicateContent and to concentrate PageRank to the main URL, if a page can be reached from different URLs.
bretteleben.de "Canonical URL" Module for Joomla 1.5The bretteleben.de Canonical URL Module works with Joomla 1.5.
The module offers 10 pairs of parameters to modify the real URL and use the result to set the TAGs <link rel="canonical" href="/desired link">. Starting with version 1.1 it is possible to run multiple instances of the module against a page. They are executed in the order they are set in the backend. New in Version 1.1:- possibility to run multiple instances against one page
Features:- replace single parts of the path - remove unwanted GET-parameters - set a fixed URL - run multiple instances against one page Installation and Usage 1.) Upload and install the Package. 2.) Activate the module for all or selected Menu-Items. 3.) Parameters: There are 10 pairs of parameters available. Each pair consists of the text to search (1th part) and the text to replace with (2nd part).
Sample1: You use Joomfish but don't have translated all of your pages. To prevent getting punished for delivering DuplicateContent, you set the canonical URL of - not translated - pages to URL of the the main language. Rule01: Find part of URL: lang-de (still delivers english content) Rule01: Set part of URL: lang-en (this is your main language, we use it as canonical url)
Using this rule for pages - still delivered in english but reached in the section /lang-de/ - sets the canonical URL for this pages to /lang-de/ and prevents DuplicateContent.
Sample2: You use (as I do) yvComment, but don't want to get the pages with the request-parameters (start=10, 20, and so on) to get indexed to concentrate PageRank to the "main"-pages. Rule02: Find part of URL: start= Rule02: Set part of URL:
The text in the first part of this rule ends with an equal sign. This tells the module, that we want to modify a request-parameter. The module now replaces not only "start=" but includes the values (0,10,20,30,...) too. The whole parameter is replaced with the text given in the second part of the rule, in this sample: nothing, i.e. the whole parameter is removed from the URL. Notice: You must not include ? or & (resp. & amp;). These are handled by the module automatically.
Sample3: You want to set for a special page a fixed canonical URL to be used for indexing the page, whatever parameters the page is called with.
Rule03: Find part of URL: Rule03: Set part of URL: /my-desired-canonical-url.html
In this case the first part of the rule stays empty, this way telling the module that the complete (relative) URL is to replace.
The module works down the rules one by one and inserts the resulting URL as rel="canonical" URL into the head of your page(s).
The domain-part of the URL is NOT modified. This should be done by using redirects. Limitations:Bug-reports, Feature-Requests, Hints are highly welcome.
Please handle with care, because wrong settings (unreachable) may cause pages from dissapear from the Google-Index completely! Check every set rule within the source of the concerned page(s)!!! The module is NO replacement for Joomlas SEF-plugin or an external SEF-extensions! It is only a supplementation!
A step by step tutorial will follow. Demo
The module is used to set a canonical URL for the menu item Very Simple Image Gallery and removes the yvComment-parametrs, even when browsing the comments. Compatibility The module is tested successful with Joomla 1.5.6, 1.5.7 and 1.5.8. Anyway, using it aside with one or another existing plugin/modul/component may bring to light problems i haven't foreseen. Again I suggest a test run before using it on a live site and stand by for your questions and suggestions. LicenseThe module is licensed under the GNU Public License (www.gnu.org/copyleft/gpl.html). update Version: 1.1.0Version 1.1.0 - 2009-03-29
- check if a canonical URL is already set by another instance and work with it
Version 1.0.0 - 2009-02-13
Support If you have questions or suggestions, please use the comment-function. Records about the behavior of this extension (positive or negative) are most welcome.
If you use this extensions, you have the possibility to post a rating and a review at joomlaos.de or extensions.joomla.org. Furthermore I appreciate everyone, supporting me with a link back to www.bretteleben.de on his/her website. The extension itself does not produce any hidden links, eastereggs or whatever.
Download The ZIP-archives contain the module, by downloading it you agree to the terms of the GNU Public License. The ZIP-Archive can be used for both, upgrade and fresh installation.
|
Hi,
ich weiß nicht ob ich hier richtig bin, versuche es aber einfach mal. Ich bin Anfänger und habe eine Frage bezüglich yvcomment in der aktuellen Version 1.25.003. Alles ohne Probleme installiert, jedoch erscheint das Eingabefenster "Kommentar hinzufügen" doppelt und untereinander. Was mach ich falsch?
Gruß
multi-usb AT web DOT de
Hallo multi-usb!
Nein, tut mir leid aber da bist Du hier nicht richtig. Ich verwende die Komponente nur und kann Dir in diesem Fall nicht weiterhelfen. Versuche es vielleicht mal auf der Seite des Entwicklers (yurivolkov.com/Joomla/yvComment/index_en.html) oder in den Foren auf forum.joomla.org
Gruß
Andreas
Why does this plugin have just 10 pairs for canonical urls?
Hi Goran!
Because the plugin is a module and if you need more than these 10 pairs, just copy the first module and go on with the next.
Best regards
Andreas
Hallo, Im using vmSEF pluging for Virtuemart URL-friendly and now Im trying take out string "?pop=0" from Virtuemart url. Example of string is here: http://pianoforte.cz/cs/obchod/noty-pro-piano/klasika/intimni-skici?pop=0
I have done this:
1.) Upload and install the Package.
2.) Activate the module for all Menu-Items.
3.) Set parameters:
1. pop=0
1. [empty]
(letter "?" is not still possible take out? I have read.)
Ive try to use canonical URL for else my URLs and it doesnt work also... What Im doing bad?
Thank you for answer.
Hi Jurka!
The module does not change the URL of a page. The module sets the Canonical URL, this is a tag in the head of the page that tells Google the URL to use when indexing this page. Please have a look at the source of your page, the extension already works and removes the parameter. Just search for rel="canonical".
About the code you are using: Please replace "pop=0" with "pop=".
Best regards
Andreas
I cannot guarantee for what Google does, but have a look yourself:
http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
Best regards
Andreas
Just to confirm, Google will treat all URLs with "/us/" as "/" right? In other words, abc.com/us/page-one will be treated as abc.com/page-one? The default language for my site is English so there was no need to have "/us/" included in the URL.
If this works, this module is a terrific extension that everyone should have to avoid duplicate content. Thank you.
You seem to have a problem with the directory settings on your server. Uploading an extension with your FTP-client is not a solution because the Joomla! installer not only moves the files to the right place but also registers the extension in the Joomla! database. In your case - although you have been able to use the backend of the module (if you have set the rule) - maybe something went wrong whilst uninstalling/reinstalling/reuploading and the extension is not properly registered.
To solve this problem, first check the directory settings: Joomla! backend > Help > System Info > Directory permissons. Everything should be green (writable) there.
If everything looks fine and the error persists, check if you have activated the Joomla! FTP layer: Joomla! backend > Site > Global Configuration > Server > FTP. If it is activated, deactivate it and check the gallery again. If it works now - fine.
If it doesn't (or if the FTP layer has been deactivated from the beginning), activate it and try to configure it properly. A nice Howto you find at forum.joomla.org in the article of the user Degira:
http://forum.joomla.org/viewtopic.php?f=431&t=314112&p=1382452#p1382452
If everything works, delete the files uploaded by FTP and reinstall the extension.
Best regards
Andreas
* JFolder::create: Could not create directory
* Module Install: Failed to create directory.: "/hsphere/local/home/site/modules/mod_canonical"
so i manually uploaded the folder to the server using ftp.
then i set the rules as you have suggested, /s/ -> /
published on all pages. but i could not find the rel=canonical code anywhere in the page source, i checked head and body.
did i manually install the module incorrectly? i'd like to delete everything and start again. do i just need to delete the folder in modules or are there other files i have to delete? thank you.
The URL you see in the address-bar of the browser will never get touched by this module. It adds/modifies the canonical tag. Have a look at the source of a page targeted by this mdolue and you will find a link with rel="canoncial" and href="/THE_MODIFIED_URL". This is the tag Google reads. Multiple pages pointing to the same canoncial URL will get treated as 1 page (as long as there are not to many differences between them).
So, give your sample another try, "/us/" -> "/" and have a look at the source of the page.
About your question how to separate pages already translated from pages still waiting for the translation: A module allows you to target it explicitly to the pages you want it to work with so - as soon as you have translated a page, turn off the module for this page.
As soon as you create a new page - still without translation - turn it on for this page.
Best regards
Andreas
Rule01: Find part of URL: /us/
Rule01: Set part of URL: (leave blank)
But when I checked the urls, it still shows /us/ in the URLs.
Second question, some pages are already translated into Spanish and some aren't. If I follow the example in this site,
Rule01: Find part of URL: lang-de (still delivers english content)
Rule01: Set part of URL: lang-en (this is your main language, we use it as canonical url)
Wouldn't the above canonicalize all my Spanish pages? How do I just do the untranslated ones only?
If you could provide a link to the page plus post the settings you are using, I will have a look at it.
Best regards
Andreas