{"id":385,"date":"2024-04-10T00:07:13","date_gmt":"2024-04-09T22:07:13","guid":{"rendered":"https:\/\/felixwebdesign.de\/?p=385"},"modified":"2025-03-10T23:27:22","modified_gmt":"2025-03-10T22:27:22","slug":"humhub-seo-legal-tools-module","status":"publish","type":"post","link":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/","title":{"rendered":"SEO-friendly URLs for the Legal Tools module"},"content":{"rendered":"<p>The <a href=\"https:\/\/marketplace.humhub.com\/module\/legal\/description\" target=\"_blank\" rel=\"noreferrer noopener\">Legal Tools<\/a>\u00a0module is a must-have for every public HumHub network to add imprint, terms of use, privacy policy and cookie notice.<\/p>\n\n\n\n<p>Would you like to see these pages with the new <a href=\"https:\/\/felixwebdesign.de\/en\/product\/humhub-seo\/\">SEO module<\/a> for search engines, this is not possible directly. Because the URLs of the pages are something like this <code>yourdomain.com\/legal\/page\/view?pageKey=terms<\/code> This is not particularly SEO friendly and is not supported by the SEO module.<\/p>\n\n\n\n<p>However, it can easily be adjusted in your file configuration so that the URL is <code>yourdomain.com\/terms<\/code> .<\/p>\n\n\n\n<p><strong>Attention:<\/strong> Before you make any changes to your configuration file, copy the file so you can restore it in case of a mistake. Even a small typo can make your network unreachable.<\/p>\n\n\n\n<p>The configuration file can be found at <code>protected\/config\/common.php<\/code> There should already be <code>showScriptName<\/code> on <code>false<\/code> and <code>enablePrettyUrl<\/code> on <code>true<\/code> Because without PrettyURLs the SEO module does not work.<\/p>\n\n\n\n<p>Now add <code>rules<\/code> to the file as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>&lt;?php\nreturn &#91;\n    'components' =&gt; &#91;\n        'urlManager' =&gt; &#91;\n            'showScriptName' =&gt; false,\n            'enablePrettyUrl' =&gt; true,\n            'rules' =&gt; &#91;\n                &#91;\n                    'pattern' =&gt; 'terms',\n                    'route' =&gt; 'legal\/page\/view',\n                    'defaults' =&gt; &#91;'pageKey' =&gt; 'terms']\n                ],\n                &#91;\n                    'pattern' =&gt; 'imprint',\n                    'route' =&gt; 'legal\/page\/view',\n                    'defaults' =&gt; &#91;'pageKey' =&gt; 'imprint']\n                ],\n                &#91;\n                    'pattern' =&gt; 'privacy',\n                    'route' =&gt; 'legal\/page\/view',\n                    'defaults' =&gt; &#91;'pageKey' =&gt; 'privacy']\n                ]\n            ],\n        ],\n    ]\n];<\/code><\/pre>\n\n\n\n<p>And that's it. Now you can, for example, find your Terms at <code>yourdomain.com\/terms<\/code> and use the SEO mode to edit your SEO settings.<\/p>\n\n\n\n<p><strong>This guide has been tested with the following versions:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HumHub: 1.15<\/li>\n\n\n\n<li>Legal Tools module: 1.4.1<\/li>\n\n\n\n<li>SEO module: 1.0.0-beta.1<\/li>\n\n\n\n<li>PHP: 8.2<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Das Legal Tools-Modul ist ein Must-Have f\u00fcr jedes \u00f6ffentliche HumHub-Netzwerk, um Impressum, Nutzungsbedingungen, Datenschutzerkl\u00e4rung und Cookie-Hinweis hinzuzuf\u00fcgen. M\u00f6chtest du diese [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[46],"tags":[],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-humhub"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Humhub - SEO-freundliche URLs f\u00fcr das Legal Tools-Modul - Felix Webdesign<\/title>\n<meta name=\"description\" content=\"HumHub - SEO f\u00fcr Impressum und Co. mit dem SEO-Modul von FelixWebdesign - Wie du f\u00fcr Legal Tools-Seiten PrettyUrls konfigurierst.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Humhub - SEO-freundliche URLs f\u00fcr das Legal Tools-Modul - Felix Webdesign\" \/>\n<meta property=\"og:description\" content=\"HumHub - SEO f\u00fcr Impressum und Co. mit dem SEO-Modul von FelixWebdesign - Wie du f\u00fcr Legal Tools-Seiten PrettyUrls konfigurierst.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/\" \/>\n<meta property=\"og:site_name\" content=\"Felix Webdesign\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-09T22:07:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-10T22:27:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Felix Hahn\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Felix Hahn\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/\"},\"author\":{\"name\":\"Felix Hahn\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#\\\/schema\\\/person\\\/40bf4a5b37ead2823a57574f7460fb46\"},\"headline\":\"SEO-freundliche URLs f\u00fcr das Legal Tools-Modul\",\"datePublished\":\"2024-04-09T22:07:13+00:00\",\"dateModified\":\"2025-03-10T22:27:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/\"},\"wordCount\":177,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#organization\"},\"articleSection\":[\"HumHub\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/\",\"name\":\"Humhub - SEO-freundliche URLs f\u00fcr das Legal Tools-Modul - Felix Webdesign\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#website\"},\"datePublished\":\"2024-04-09T22:07:13+00:00\",\"dateModified\":\"2025-03-10T22:27:22+00:00\",\"description\":\"HumHub - SEO f\u00fcr Impressum und Co. mit dem SEO-Modul von FelixWebdesign - Wie du f\u00fcr Legal Tools-Seiten PrettyUrls konfigurierst.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/humhub-seo-legal-tools-module\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/felixwebdesign.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SEO-freundliche URLs f\u00fcr das Legal Tools-Modul\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/\",\"name\":\"Felix Webdesign\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#organization\",\"name\":\"Felix Webdesign\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/logo-transparenz.png\",\"contentUrl\":\"https:\\\/\\\/felixwebdesign.de\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/logo-transparenz.png\",\"width\":500,\"height\":500,\"caption\":\"Felix Webdesign\"},\"image\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#\\\/schema\\\/person\\\/40bf4a5b37ead2823a57574f7460fb46\",\"name\":\"Felix Hahn\",\"description\":\"Professioneller Harfenist und selbsterlernter HumHub-Entwickler und Webdesigner.\",\"sameAs\":[\"https:\\\/\\\/hahn-felix.de\"],\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/author\\\/felix34\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Humhub - SEO-freundliche URLs f\u00fcr das Legal Tools-Modul - Felix Webdesign","description":"HumHub - SEO f\u00fcr Impressum und Co. mit dem SEO-Modul von FelixWebdesign - Wie du f\u00fcr Legal Tools-Seiten PrettyUrls konfigurierst.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/","og_locale":"en_GB","og_type":"article","og_title":"Humhub - SEO-freundliche URLs f\u00fcr das Legal Tools-Modul - Felix Webdesign","og_description":"HumHub - SEO f\u00fcr Impressum und Co. mit dem SEO-Modul von FelixWebdesign - Wie du f\u00fcr Legal Tools-Seiten PrettyUrls konfigurierst.","og_url":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/","og_site_name":"Felix Webdesign","article_published_time":"2024-04-09T22:07:13+00:00","article_modified_time":"2025-03-10T22:27:22+00:00","og_image":[{"width":500,"height":500,"url":"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png","type":"image\/png"}],"author":"Felix Hahn","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Felix Hahn","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/#article","isPartOf":{"@id":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/"},"author":{"name":"Felix Hahn","@id":"https:\/\/felixwebdesign.de\/en\/#\/schema\/person\/40bf4a5b37ead2823a57574f7460fb46"},"headline":"SEO-freundliche URLs f\u00fcr das Legal Tools-Modul","datePublished":"2024-04-09T22:07:13+00:00","dateModified":"2025-03-10T22:27:22+00:00","mainEntityOfPage":{"@id":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/"},"wordCount":177,"commentCount":0,"publisher":{"@id":"https:\/\/felixwebdesign.de\/en\/#organization"},"articleSection":["HumHub"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/","url":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/","name":"Humhub - SEO-freundliche URLs f\u00fcr das Legal Tools-Modul - Felix Webdesign","isPartOf":{"@id":"https:\/\/felixwebdesign.de\/en\/#website"},"datePublished":"2024-04-09T22:07:13+00:00","dateModified":"2025-03-10T22:27:22+00:00","description":"HumHub - SEO f\u00fcr Impressum und Co. mit dem SEO-Modul von FelixWebdesign - Wie du f\u00fcr Legal Tools-Seiten PrettyUrls konfigurierst.","breadcrumb":{"@id":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/felixwebdesign.de\/en\/humhub-seo-legal-tools-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/felixwebdesign.de\/"},{"@type":"ListItem","position":2,"name":"SEO-freundliche URLs f\u00fcr das Legal Tools-Modul"}]},{"@type":"WebSite","@id":"https:\/\/felixwebdesign.de\/en\/#website","url":"https:\/\/felixwebdesign.de\/en\/","name":"Felix Webdesign","description":"","publisher":{"@id":"https:\/\/felixwebdesign.de\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/felixwebdesign.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/felixwebdesign.de\/en\/#organization","name":"Felix Webdesign","url":"https:\/\/felixwebdesign.de\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/felixwebdesign.de\/en\/#\/schema\/logo\/image\/","url":"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png","contentUrl":"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png","width":500,"height":500,"caption":"Felix Webdesign"},"image":{"@id":"https:\/\/felixwebdesign.de\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/felixwebdesign.de\/en\/#\/schema\/person\/40bf4a5b37ead2823a57574f7460fb46","name":"Felix Hahn","description":"Professional harpist and self-taught HumHub developer and web designer.","sameAs":["https:\/\/hahn-felix.de"],"url":"https:\/\/felixwebdesign.de\/en\/author\/felix34\/"}]}},"_links":{"self":[{"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/posts\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/comments?post=385"}],"version-history":[{"count":2,"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/posts\/385\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/posts\/385\/revisions\/392"}],"wp:attachment":[{"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/media?parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/categories?post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/felixwebdesign.de\/en\/wp-json\/wp\/v2\/tags?post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}