Thank you itpp2012, but is there a reference for "$1 at least has a slash" ? Or people get it by practice :) ?!by m_abdelfattah - How to...
I don't think that stackoverflow question is related to mine! I don't have a redirect loop! and my root directive is outside my location block!by m_abdelfattah - How to...
I've the following rewrite rule on location /, and it enforces trailing slash! location / { rewrite ^(\/.*) https://example.com/ar$1 permanent; } each, time I curl mydomain.com, I got the following response: HTTP/1.1 301 Moved Permanently Content-Type: text/html Connection: keep-alive Location: https://example.com/ar/ I do not want the trailing slash at the end of the rediby m_abdelfattah - How to...
![]() |
![]() |
![]() |
![]() |
|