Skip to content
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

Open
Flarescape opened this issue Mar 31, 2021 · 7 comments
Open

SEO: Rewrite Module #9027

Flarescape opened this issue Mar 31, 2021 · 7 comments
Labels
enhancement SEO Search Engine Optimizations
Milestone

Comments

@Flarescape
Copy link

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.

@jtkech
Copy link
Member

jtkech commented Mar 31, 2021

I've just created a custom rewrite module with the same functionality for OC, but with much less code.

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

@deanmarcussen
Copy link
Member

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

@Piedone
Copy link
Member

Piedone commented May 8, 2021

This would also be quite useful when migrating sites to Orchard and you want to keep old URLs working.

@xperiandri
Copy link
Contributor

Any updates? We need redirects functionality.
I thought about implementation of them as the ability to add a list of URLs to the main URL of AutoRoute. Where you add a rules for content type in AutoRoute module and they will redirect to that content item.

@xperiandri
Copy link
Contributor

@sebastienros can we implement that?
By adding a section on the SEO tab in a content item

@deanmarcussen
Copy link
Member

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
https://github.com/EtchUK/Etch.OrchardCore.SEO

@Piedone
Copy link
Member

Piedone commented May 21, 2024

For now, you can use the URL Rewriting Middleware to add any redirects.

Autoroute redirects issue: #8864.

@Piedone Piedone added this to the backlog milestone May 21, 2024
@Piedone Piedone added the SEO Search Engine Optimizations label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement SEO Search Engine Optimizations
Projects
None yet
Development

No branches or pull requests

5 participants