https://github.com/clarkwinkelmann/flarum-ext-http-discussion-redirects
Redirect discussions to their canonical URL via 301 redirects
https://github.com/clarkwinkelmann/flarum-ext-http-discussion-redirects
Last synced: 3 months ago
JSON representation
Redirect discussions to their canonical URL via 301 redirects
- Host: GitHub
- URL: https://github.com/clarkwinkelmann/flarum-ext-http-discussion-redirects
- Owner: clarkwinkelmann
- License: mit
- Created: 2020-08-18T15:54:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T16:05:55.000Z (about 4 years ago)
- Last Synced: 2025-01-30T23:41:18.173Z (4 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# HTTP Discussion Redirects
 [](https://packagist.org/packages/clarkwinkelmann/flarum-ext-http-discussion-redirects) [](https://packagist.org/packages/clarkwinkelmann/flarum-ext-http-discussion-redirects) [](https://www.paypal.me/clarkwinkelmann)
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](https://clarkwinkelmann.com/flarum) to sponsor additional features or updates.
Support is offered on a "best effort" basis through the Flarum community thread.
## Links
- [GitHub](https://github.com/clarkwinkelmann/flarum-ext-http-discussion-redirects)
- [Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-ext-http-discussion-redirects)