Skip to content

Modify RedirectView to allow 301 Permanent Redirects [SPR-5468] #10141

Closed
@spring-projects-issues

Description

@spring-projects-issues

Scott Murphy opened SPR-5468 and commented

There are numerous occasions where I need to use a redirect view to permanently redirect traffic based on an old url. For SEO purposes, a permanent redirect is preferred over a temporary one for transferring pagerank to the new url. (See: http://www.mcanerin.com/EN/articles/301-redirect-scripting.asp)

Please provide a way to specify the type of redirection (permanent vs temporary) via constructor argument . Temporary should still be used for form submissions, while permanent can be used for SEO purposes.

The need for this feature will be greater with the introduction of REST-style urls in 3.0.


Affects: 3.0 M1

Issue Links:

Referenced from: commits 5b12503

1 votes, 1 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions