Website SEO Hardening
Stop Odoo from publishing pages that search engines will only crawl and throw away.
Live Demo
User:seo / Password:seo
WHY
A standard Odoo website publishes far more URLs than it can afford to have indexed. Every event page announced in the sitemap only answers a redirection, and that redirection drops the language prefix, so a translated event page is never served to anyone. The event listing exists twice, under two addresses, each one claiming to be the original. Blog tag pages are marked as "do not index" and then linked from every single post, so crawlers request thousands of them anyway. Login, portal, cart and survey screens are indexable. The sitemap advertises Atom feeds and empty pages.
The result is a site where the crawler spends its budget on pages that will never rank, and where the pages that matter wait their turn. This app closes those leaks, one setting at a time, and then cleans up the junk the database already accumulated.
Nothing is forced on you. Every behaviour is a checkbox or a list on the website record, so it is configured per website, and turning one off restores the exact Odoo behaviour, internal links included.
FEATURES
Events on their real URL
The event page is rendered on /event/<event> instead of bouncing the visitor to the registration URL, and that URL is its own canonical. /event/<event>/register answers a 301 back to it. Events owning a website menu with submenus keep the standard flow, and so does the website editor.
Translated events reach their reader
Stock Odoo builds that redirection on a path without the language prefix, so /en_US/event/<event> lands back on the default language: an event whose name and meta tags are translated is served to nobody in the language it was written in. No redirection is answered any more, and the one an event with a menu still gets is localized on the way out.
One event listing
/event, /event/page/N and /event/tags/<tag> move permanently to their /events counterpart, keeping the tag, the language prefix and the query string. The comma separated tag combinations crawlers invent are the one exception: they go straight to the bare /events in a single hop instead of chaining two redirections.
Internal links skip the hop
The cards of the event listing link to /event/<event>, and the two "All Events" back links of the event submenu link to /events. A click, or a crawl, no longer pays a redirection. Switch the settings off and the stock hrefs come back.
Redirections monitors can trust
The 301 is answered on GET and on HEAD, so a link checker or an uptime monitor sees the same site as Googlebot. A registration POST is never redirected: it always reaches the standard controller.
Noindex on technical routes
Login, signup, password reset, sessions, the portal, /odoo, cart, checkout, surveys, profiles, calendars, appointment details, /website/info and /website/translations are served with a robots noindex tag. The list is a text field, one pattern per line, yours to edit.
Noindex on paginated listings
Page 2 and beyond of the event listing carries a noindex tag, out of the box. The same switch exists for the blog listing pagination, off by default, because on many sites those pages are the only path to the older posts.
No untranslated duplicates
Off by default. Enable it and a record browsed in a language it was never translated to is served with a noindex tag and a canonical link pointing at the default language URL, instead of competing with the original.
A quieter sitemap
Atom feeds, the customer pages, forum and profile URLs, slide redirections, /partners, /pricing and /website/info are dropped from sitemap.xml. Events, blogs and posts stay. The list uses the same one-pattern-per-line syntax.
Every URL announced once
Odoo announces the event listing twice in sitemap.xml, once per route registered on it. Duplicated entries are collapsed to one, whatever your exclusion list says: an exclusion pattern would have dropped the original with the duplicate.
Blog tag links go nofollow
Odoo serves the tag pages with a robots "none" tag and then links to them from every post. Each of those links, in the post, in the teasers, in the sidebar and in the tag cloud, now carries rel="nofollow".
Thin tags lose their link
A tag with fewer published posts than your minimum (two by default) is rendered as a plain text badge next to the posts, so the reader keeps the information, and is dropped from the sidebar tag cloud, which only exists to filter the listing. Set the minimum to 1 to link every tag again.
Data cleanup, previewed first
A wizard counts the decorated, duplicate, empty and thin blog tags, the blogs without a post, the forums answering a soft 404, the partners published without an industry, the missing robots.txt rules and the stale sitemap cache, then fixes the ones you tick.
Nothing deleted without a backup
Before a single tag is merged or deleted, the wizard writes a JSON attachment on the website record with the id, the name and the posts of every affected tag, and reports its id, and the ids of every record it touched, in the summary.
robots.txt completed, never rewritten
The 23 recommended Disallow rules that are missing are appended under a comment marker. What was already there is kept, a second run appends nothing, /web/image, /web/assets and /web/content stay crawlable and /odoo is blocked without blocking /odoo-erp.
A weekly run, off by default
The module ships a disabled scheduled action that repeats the safe part on every website: normalize the tag names, merge the duplicates, delete the tags nobody uses, purge the sitemap cache. It never deletes a blog or a thin tag, never unpublishes anything, never touches robots.txt.
Per website, and reversible
Every option lives on the website record, so a multi-website database configures each site on its own. Emptying a list disables that list, unticking a box restores the stock Odoo code path, and running the cleanup is reserved to the Website / Editor and Designer group.
WHAT THE CLEANUP WIZARD OFFERS
Normalize tag names (on) — strips the surrounding spaces, the leading # or , and the repeated spaces of every blog tag name.
Merge duplicate tags (on) — tags whose normalized name only differs by case are merged into the one carrying the most posts, the oldest one on a tie. Every post of the duplicates is moved to the surviving tag.
Delete empty tags (on) — removes the tags no post uses at all.
Delete thin tags (on) — removes the tags carrying fewer published posts than the minimum, which defaults to the one configured on the website. The tags whose posts are all unpublished are covered too: they are not empty, yet their page answers a 200 with an empty listing.
Delete empty blogs (off) — removes the blogs without a single post, published or not.
Hide empty forums (off, shown only with website_forum installed) — switches the forums without a post to the "Some users" privacy, so they stop answering a soft 404. Off by default, like every action that changes who may read something rather than what a crawler sees.
Unpublish partners without industry (off, shown only with website_customer installed) — unpublishes the /customers entries carrying no industry, which on most databases are cities and imported leftovers.
Disable /website/info (on) — deactivates the view that publishes the list of your installed modules.
Complete robots.txt (on) — appends the missing recommended rules, keeping the existing content untouched. The pages served with a noindex tag stay crawlable: a crawler that may not fetch a URL never reads the tag on it, and an indexed page would stay indexed.
Purge sitemap cache (on) — deletes the cached sitemap attachments of the selected website so that the next /sitemap.xml request regenerates them, exclusions included.
Read the scope before you tick: the blog, forum, robots.txt and sitemap actions apply to the selected website only. The four tag actions are global, because blog tags carry no website in Odoo, and so are the two remaining ones: unpublishing partners without an industry and disabling /website/info both reach every website in the database.
HOW DO I USE?
1
Install and forget
Installing the app is enough. Events start answering on their short URL, /event moves to /events, the technical routes and the event pagination get their noindex tag, the sitemap loses its noise and the blog tag links become nofollow. Everything is under Website -> Configuration -> Settings, section SEO Hardening: pick the website at the top of the page first, every option is stored on it.
2
Open an event
Publish an event from Events -> Events and open it from the website. The address bar stays on /event/<event>, the registration block is right there, and the canonical link of the page points at that very URL. Stock Odoo would have bounced you to /event/<event>/register. With a second language published, open /<lang>/event/<event> too: the page answers in that language, prefix intact, instead of falling back on the default one.
3
Watch the duplicates move
Request /event, /event/page/2 or /event/<event>/register and read the response status: a 301 towards /events, /events/page/2 and the event page. The query string and the language prefix survive the move, HEAD answers the same 301 as GET, and a registration POST is left alone.
4
Read the page source
Open /web/login and look at the head: the robots noindex tag is there, and it is not on your homepage. Adapt the Noindex paths list to your own routes: one pattern per line, the star matches any character including slashes, blank lines and lines starting with a hash are ignored. A pattern matches the whole path, which is why the shipped list carries both /my and /my/*. Empty the field and the feature is off.
5
Check the sitemap
Open /sitemap.xml and search for a blog feed entry: there is none left, and neither are the customer, forum, profile, /partners, /pricing and /website/info URLs. /events is listed exactly once, your events and posts are still there. Odoo caches the sitemap, so after a change to the exclusions use the cleanup wizard to purge that cache.
6
Look at the blog tags
Open a post carrying several tags. The badges of the tags with enough published posts are links carrying rel="nofollow"; the ones below your minimum are plain badges with no href, and they are gone from the sidebar tag cloud. Raise the minimum and more tags lose their link; set it to 1 and every tag is linked again.
7
Audit before you clean
Website -> Configuration -> SEO Cleanup, or the "Audit & clean data" button of the settings, opens the wizard. Every counter next to an option is a preview of what it would do right now, and "Refresh preview" recomputes them. Pick the website, tick what you want, leave the rest alone.
8
Run it, and keep the receipt
"Run cleanup" applies the selected actions and reports, line by line, how many records each one touched and their ids. The first line is the id of the JSON attachment holding every tag that was about to be merged or deleted, filed on the website record. Only a member of the Website / Editor and Designer group can run it.
9
Complete your robots.txt
Tick "Complete robots.txt" and open /robots.txt: the rules that were missing are appended under a "# website_seo_hardening" marker, below what you had written. Run it twice and nothing is added the second time. /web/image, /web/assets and /web/content are deliberately left crawlable, and /odoo is blocked through /odoo$, /odoo? and /odoo/ so that a page such as /odoo-erp keeps being indexed.
10
Automate the safe part
Once a manual run has been reviewed, enable the "Website: SEO data cleanup" scheduled action from Settings -> Technical -> Scheduled Actions. It ships disabled, runs weekly on every website, and sticks to what cannot surprise you: tag names, duplicates, unused tags and the sitemap cache. It never deletes a blog or a thin tag, never unpublishes anything and never touches robots.txt: those stay manual, on purpose.
GET TECHNICAL HELP & SUPPORT
In case of any issue, please report it in the channels below and we will fix it right-away
support@vauxoo.com
www.vauxoo.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Events (website_event)
• Website (website) • Discuss (mail) |
| Lines of code | 1132 |
| Technical Name |
website_seo_hardening |
| License | OPL-1 |
| Website | https://www.vauxoo.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module