-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEO: Rewrite Module #9027
Comments
Cool, are you open to create a PR based on your code? That would suggest a separate module / feature or as you think an additional feature of the SEO module |
Yes, sounds great. We discussed it at a meeting either last week or the week before, if someone can find the video. Probably a separate module. But open a pr please |
This would also be quite useful when migrating sites to Orchard and you want to keep old URLs working. |
Any updates? We need redirects functionality. |
@sebastienros can we implement that? |
Seperate Rewrite module. RewritePart for content items plus would need to handle rules that are not content item related, or support for a decoupled razor page scenario. Also discussed the need for a url tracker for tracking not found's. But that's a seperate feature. Would also still be good to see what you have already done @Flarescape For some ideas |
For now, you can use the URL Rewriting Middleware to add any redirects. Autoroute redirects issue: #8864. |
I know that there are some open issues out there, where other people asking for an extension to the autoroute module for path updates and redirects, but this does not cover actual SEO relevant redirects.
In O1 there was the so called Contrib.RewriteRules module, which worked with apache mod rewrite rules syntax.
I've just created a custom rewrite module with the same functionality for OC, but with much less code.
It's very helpfull that we now have "app.UseRewriter", which supports "RewriteOptions" and automatically parses apache mod rewrite rule syntax, so no need for a custom parser, but i don't think that we even need to use the apache rules, the build in syntax is much better.
So i think, that a rewrite rules module in the SEO section of the admin menu would be great.
This could be easily achived by creating a content type with a list part of content type "rule".
I think, a single roule needs a "From" and a "To" field and some options for the type of redirect, like permanent, etc.
And of course support for wildecards.
Maybe this could be a standard part of the already existing SEO module, because i would consider this as a prerequisite for the Website/CMS part of OC.
The text was updated successfully, but these errors were encountered: