Config Problem for Wordpress 2.5

mike mike503 at gmail.com
Sun Apr 13 10:21:16 MSD 2008


have you tried this?
http://www.romej.com/archives/515/nginx-rewrite-rules-for-wordpress-redux

other ideas/links:
http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/
http://elasticdog.com/2008/02/howto-install-wordpress-on-nginx/

Typically WP installs have basically "if file does not exist, go
through /wordpress/index.php" or wherever your wordpress physical
directory resides.

        if (!-e $request_filename) {
            rewrite ^(.+)$ /index.php?q=$1 last;
        }

If that stuff doesn't work, please post your config (edit out the
hostnames if you wish) you might have conflicting rules or something.

On 4/12/08, Todd HG <lists at ruby-forum.com> wrote:
> Kiril Angov wrote:
> > You need some rewrite rules.
> >
> > if (!-e $request_filename) {
> >   rewrite ^.+/?(/wp-.*) $1 last;
> >   rewrite ^.+/?(/.*\.php)$ $1 last;
> >   rewrite ^(.+)$ /index.php?q=$1 last;
> > }
> >
> > Kiril
>
> Still getting the same 404 error with those rewrite rules. I am not
> using wp-cache or supercache.
> --
> Posted via http://www.ruby-forum.com/.
>
>





More information about the nginx mailing list