Re: Simple URI redirection / alias in Nginx…

pk899 nginx-forum at
Tue May 31 02:56:39 MSD 2011

I have a similar issue. 

Do we need separate location directives for each and every possible
path, or can we do some "rewrite" inside location for the main / root
folder? For example: 

location = / {

  # rewrite rules come here..
  rewrite "^/adm$" "/wordpress/wp-login.php";
  fastcgi_param SCRIPT_FILENAME
  include /etc/nginx/fastcgi_params;


To me this is cleaner, but want to make sure that this is not the less
desirable way? 


Posted at Nginx Forum:,202235,202430#msg-202430

More information about the nginx mailing list