acao1
March 6, 2023, 4:51pm
1
I’ve got an htaccess rule like this:
RewriteRule ^resources/ebooks/(platform-a | platform-b)$ /tools/ebooks/$1/index.html [QSA,L]
I understand :splats can only be used at the end of a redirect. That said, is there a valid way to write this to a redirect in the toml file?
SamO
March 6, 2023, 8:11pm
2
Hi , welcome to the forums! Please give this a read:
Last Reviewed By Netlify Support Staff December 2022
Introduction
You’ve put blood, sweat and tears into building an incredible static site with all the bells and whistles. However, you’ve configured some redirect rules and you’ve come unstuck… they don’t appear to be working!
Ensure you’ve followed the correct guidance
Our redirects and rewrites document covers a broad range of use cases, from status codes to proxying another service and everything in between.
Ensure you’re using the corr…
Also give this a try?
[[redirects]]
from = "/resources/ebooks/platform-a"
to = "/tools/ebooks/platform-a/index.html"
[[redirects]]
from = "/resources/ebooks/platform-b"
to = "/tools/ebooks/platform-b/index.html"
1 Like