Comments (7)
It would be great if something like this would be possible:
/:dir/*.pdf /:dir/:splat 301!
from ask-netlify.
/api/:year/:month/:day/:slug /:year/:slug
from ask-netlify.
Is this available already? I couldn't find any documentation.
from ask-netlify.
@ericmarcos I don't think so.
from ask-netlify.
It looks like they never finished episode 3 :(
from ask-netlify.
I actually have a more involved use-case. It would look something like this
/dir/:pdf /api/tracker?pdf=:pdf
/dir/:pdf.pdf https://bucket.s3.amazonaws.com/dir/:pdf.pdf 200
The API would then redirect to the url with extension with a location header.
So basically, the redirects handle a proxy to the API in order to track the number of times the file was requested. I used to do this with Apache but I think if the tokens were a little more strict here it could work.
To the user, all it would look like is that the url is just adding the extension for the file.
from ask-netlify.
I want to redirect from
/api/2018/04/13/openapi-and-json-schema-divergence-solved
to
/2018/openapi-and-json-schema-divergence-solved
but that doesnt seem possible with the * and splat...
from ask-netlify.
Related Issues (20)
- Sponsoring Hackathon
- How to make Deploy previews private, i.e. inaccessible to public when they attempt to visit branch-name--username.netlify.com? HOT 1
- Host a podcast on Netlify?
- CDN POP Map
- May bloat about "Different [...] detected, going to use [...] versus [empty]" be removed from logs?
- Network Solutions Custom Domain HOT 1
- Why is redirecting URLs complicated?
- dependency installation failed in deploying monorepo
- Build not failing on node process error? HOT 1
- Functions functions functions 😊
- how to make a DNS For My new Website HOT 1
- Password protection for subdomains and specific pages HOT 1
- How does your url.netlify.com link shortener work? HOT 2
- At my wit's end with Babel error HOT 1
- Need to use a file (json) to write from a netlify site dynamicaly HOT 1
- Where or how can I access the publish directory of a previous build HOT 1
- Access Denied into my Netlify account HOT 2
- I host my DNS at Cloudflare where could I found the Netlify IPv6 HOT 1
- Make Netlify show up in GitHub repo deployment environment? HOT 1
- How to add pictures to my masonry HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ask-netlify.