Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Need some help with Nginx write rule such that:
All urls of type:-
/1.1.1/xyz/abc/z.js /2.2.2/xyz/def/c.css
are re-directed to
/xyz/abc/z.js /xyz/def/c.css
Want to exclude the numeric part which comes at the beginning of URL.
location ~ ^/[0-9\.]+(/.*) { try_files $1 $1/; }
this will work
rewrite ^/(d+).(d+).(d+)/(.+)$ /$1;