Welcome! Log In Create A New Profile

Advanced

Re: can not make WordPress pretty permalinks work

Edho Arief
May 09, 2012 09:56AM
On Wed, May 9, 2012 at 8:51 PM, seron <nginx-forum@nginx.us> wrote:
> I made a fresh install of WordPress in a new directory and made a
> separate server section in nginx.conf for it.
>
> I tired what you suggested, but to no avail. There's a small change
> which is that I don't get a 404 error any more and the page is
> displayed. My guess is that it's a different problem present in my
> original WordPress installation which is not present in the new one.
>
> The problem with the pretty permalinks still remains however.
>
> For example the WordPress sample page can have either of these two
> permalinks, depending on if permalinks are set to default or something
> else:
>
> http://wptest.dev/?page_id=2 (default permalink setting)
> http://wptest.dev/index.php/sample-page/ (any other permalink setting)
>

Remove the /index.php part unless you really love it (I don't) - which
then this additional config is needed:

location /index.php/ {
rewrite ^/index.php/(.+)$ /index.php?q=$1&$args;
}

Make sure to put it before "location /" block.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: can not make WordPress pretty permalinks work

Edho Arief May 09, 2012 09:56AM

Re: can not make WordPress pretty permalinks work

Tiberius May 09, 2012 10:02AM

Re: can not make WordPress pretty permalinks work

seron May 09, 2012 10:12AM

Re: can not make WordPress pretty permalinks work

seron May 09, 2012 10:25AM

Re: can not make WordPress pretty permalinks work

seron May 09, 2012 10:33AM

Re: can not make WordPress pretty permalinks work

Edho Arief May 09, 2012 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready