Thanks for helping me troubleshooting, because I honestly feel stuck and lost. I have been troubleshooting for a long time and this is why I reached out to you guys for help. My _redirects file, I thought I did it correctly when creating a proxy, but apparently not.
/webshop/* https://webshop.hemasblomster.dk/:splat 200
/* /index.html 200
I have changed the _redirects file to the content above but can’t access https://hemasblomster.dk/webshop/ at all. I am getting the ERR_TOO_MANY_REDIRECTS The webshop is created with prestashop.
The only problem I have is to reach to the webshop.
Do I also have to edit the domain management in the control panel in Netlify or is it only the _redirects file that needs to get edited?
| luke Support Engineer
March 12 |
Hi, @rcilomba. Imagine I said to you:
How do I make that thing go there?
Would you know how to answer me? Do you know what thing I am talking about? Do you know where “there” is?
In the same way my question above doesn’t have enough detail for you do answer, your own questions here don’t have enough detail for anyone here to answer you. I could be talking about getting a horse to walk up a steep hill. I could be talking about trying to plug an electrical cord into a power outlet. I could be talking about throwing a dart at a dartboard. However, there isn’t enough information in my question to tell which which (if any) of those things I am actually talking about.
Now, your questions are more detailed than my example above. However, the fact remains, we just don’t have enough information about your question to be able to give you an answer. That said, I’ll still try.
I did take a look at your _redirects
file for this site and I do see an issue there:
/* /index.html 200
/webshop/* https://hemasblomster.dk/webshop/:splat 200
There are two issue with that above.
First, the first redirect rule is going to match the path /webshop/
as well. That means the first rule will always match first and only the first matching rule is used. So, the first thing to change is moving the /* /index.html 200
rule to the end.
That said, the proxy rule itself (quoted below) is wrong:
/webshop/* https://hemasblomster.dk/webshop/:splat 200
That rule just point the website back at itself. This would cause an infinitely loop so it will always be ignored.
My best guess (which is a guess because you haven’t provided this information) is that you want the subdirectory (sub-directory not sub-domain) /webshop/
to point to some other website that is not hosted at Netlify.
As I don’t know where the other site is, let’s just pretend it is hosted at webshop.example.com
. If so, your _redirects
file should look like this:
/webshop/* https://webshop.example.com/:splat 200
/* /index.html 200
That says when someone wants to view the path /webshop/
at Netlify (or one of its subdirectories), then proxy those requests to the site at webshop.example.com
.
If all my guesses are correct (which they may not be but if) then you can replace webshop.example.com
with the actual domain for where the webshop is hosted in those redirects above, redeploy, and then (hopefully) the issue will be fixed.
If that doesn’t fix it, please let us know some more details and we’ll be here to continue troubleshooting this.