To enable Pretty Permalinks feature in nginx simply modify the nginx conf file of wordpress site add following line
try_files $uri $uri/ /index.php?$args;
check example where to add above line
Example:
file: wordpress.conf
.....................
.......................
location / {
root /var/www/html/wordpress;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
...
.....
}
................
................
try_files $uri $uri/ /index.php?$args;
check example where to add above line
Example:
file: wordpress.conf
.....................
.......................
location / {
root /var/www/html/wordpress;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
...
.....
}
................
................
No comments:
Post a Comment