Nginx + WordPress ReWrite 固定網址

Nginx + WordPress ReWrite 固定網址 (Nginx + WordPress rewrite URL )

 

#vim /etc/nginx/sites-available/b.cpalm.org

location / {
root /home/www/wordpress;
try_files $uri $uri/ /index.php?$args;

}

If you put the sub-directory, please like below to add the parameter into your web-site configuration.

location /wordpress {
root /home/www/wordpress;
try_files $uri $uri/  /wordpress/index.php?$args;

}

Please remeber to save and exit.

#nginx -s reload

FB 留言

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *