Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com
Nginx rewrite help
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Nginx rewrite help

aldothetrollaldothetroll Member
edited July 2014 in Help

I want http://exampleurl.com/location/examplefile.php to become http://exampleurl.com/location/examplefile

This works but it rewrites everything including CSS / JS urls etc. so the site doesn't load properly.

rewrite ^/location/(.*)$ /location/$1.php last;

Can someone help me please?

Comments

Sign In or Register to comment.