Using Nginx to remove part of a URL
5,434
Put the below line into the server
context:
rewrite ^/CMS/(.*)$ http://www.mysite.com/$1 last;
Author by
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
The url is http://www.mysite.com/CMS/roundabout/drive and I need to remove the CMS portion and preserve the rest. I am stuck.