Using Regex Redirects Cause Chain Redirections
-
Hello Everyone,
Recently i’ve changed my permalinks on my blog from:
https://blog.indodana.id/2019/06/18/sample-post/
to
https://blog.indodana.id/sample-post/.
I’ve setup the 301 redirection using recommended regex
Source:
^/\d{4}/\d{2}/\d{2}/(.*)
Target:/$1/
It worked. But when check the HTTPS Status Code it seems it gets redirected (301) 2 times.
so from https://blog.indodana.id/2019/06/18/sample-post/ (301) to https://blog.indodana.id/sample-post// (301) then
to https://blog.indodana.id/sample-post/ (200).Is there any way to prevent it gets redirected twice or am i missing something here? Really appreciate it if you guys can help me. Thank you
- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Using Regex Redirects Cause Chain Redirections’ is closed to new replies.