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 留言

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *