Nginx replace // with / in URL -


we getting web requests www.domain.com//index.php resolving, causing issues google. how can rewrite request catch these , redirect www.domain.com/index.php

thanks

by default ngingx merges double-slashes , urls www.domain.com//index.php works well.

you can turn off merging , make rewrite rule redirection:

merge_slashes off; rewrite (.*)//(.*) $1/$2 permanent; 

Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -