clarkwinkelmann / flarum-ext-http-discussion-redirects
Redirect discussions to their canonical URL via 301 redirects
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- flarum/core: >=0.1.0-beta.13 <0.1.0-beta.14
Conflicts
- kilowhat/flarum-ext-custom-paths: *
This package is auto-updated.
Last update: 2024-10-11 01:07:42 UTC
README
This extension redirects non-canonical discussion URLs to their canonical version using HTTP 301 redirects.
This extension has not been tested for subfolder installs and probably doesn't work on such setups!
I'm unsure of the actual SEO benefits of this extension.
Flarum already uses the canonical
meta tag which should be enough to prevent duplicate content.
301 redirects could help search engines in case of a discussion rename since it would otherwise appear as new content.
If anyone can test the actual impact I'll be happy to update this README with some metrics.
There is potential for infinite redirect loops if you rename a discussion back to its previous name and visitor browsers cached the previous redirects!
If you have a views counter extension enabled, two views might be counted when a user follows a redirected URL.
This extension has no settings. 302 redirects are used when debug mode is enabled.
Installation
composer require clarkwinkelmann/flarum-ext-http-discussion-redirects
Support
This extension is under minimal maintenance.
It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.
You can contact me to sponsor additional features or updates.
Support is offered on a "best effort" basis through the Flarum community thread.