Regexes for route rules
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I know SPA's are not ideal for SEO, but having regexes for route rules would go a long way. It would enable me to easily define routes that should result in a 404 instead of a 200 rewrite to index.html
Example of what i would like to do:
`{
"routes": [
{
"route": "/",
"rewrite": "/index.html"
},
{
"route": "/well-known-route/*",
"rewrite": "/index.html"
},
{
"route": "/another-well-known-route/*",
"rewrite": "/index.html"
}
]
}`
Everything else that does not exist in the context of my angular application would get a proper 404 response, and google will not include it in the index.
If you wonder what other url's would be indexed by google besides the routes of my application: just try putting a angular app online and you will see. For my latest project, i see google checking these url's:
- /tenies-online/2016.html
- /home/top/new-rock
- etc ....
I have no idea where these come from, but they are polluting the google index for my uri, and are hampering my SEO efforts.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.