Sunday, 1 September 2013

Nginx rewrite rule attempt for WordPress posts

Nginx rewrite rule attempt for WordPress posts

I've put a custom spin on a local WordPress install and I'm trying rewrite
the following URL string...
Example: If the string "?p=227" appears I would like it rewritten to
"post.php?p=227". 227 can be any post ID/number so technically it needs to
be "?p=" rewrites to "post.php?=" & then adds the ID/number to the end of
it.
I'm sure this is possible, I just can't seem to find any practical
examples for doing this in Nginx. Thanks in advance.

No comments:

Post a Comment