if I install nginx, is there a place where I can put the rewrite rules? location /wordpress { try_files $uri $uri/ /wordpress/index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(/wordpress)(/.*)$; }
You need to add them to the main configuration file or to the virtual host config file instead. Take a look here for few examples.