0

my host server is nginx.

in the root directory i have installed magento, then i created a file named blog, then installed wordpress into it. now, the directory is:

app
includes
....
blog/wp-admin

when i set http://www.example.com/blog/index.php/%postname%.html in Permalink Settings. access all the post, it's ok. now i want to remove the index.php. namely change it into http://www.example.com/blog/%postname%.html.when i delete the index.php. all the post are not unavailable,

EDIT: i put the code in the nginx.conf.

location /blog/ {
    index index.php;
    try_files $uri $uri/ /blog/index.php?$uri&$args;
    rewrite ^ /index.php? last;
}

but it doesn't work. is there something i lost?

stack2013110
  • 57
  • 4
  • 8

0 Answers0