1

Simple NGinx rewrite is redirecting

view story
linux-howto

http://serverfault.com – I'm trying to setup a friendly URL for a website running on my Nginx server but for some reason, the url's are being redirected instead of being rewritten. For instance If a user visits mydomain.com/aboutme/ I want mydomain.com/aboutme/ to stay in the address bar, but for the content to be pulled from mydomain.com/aboutme.php In my Nginx site configuration I have the following (a simple example with some stuff chopped out for simplicities sake): server { listen 1.2.3.4:80; server_name www.mydomain.com; location / { rewrite ^/aboutus/$ http://www.mydomain.com/aboutus.php (HowTos)