Help with weird URL parsing problem
February 10, 2014 05:17PM
I am an nginx newbie. Apologies in advance for stupid questions.

I am running Wordpress on nginx on a linode....I made the switch for performance, and I have been thrilled.

I have one problem -- my setup will not handle any wordpress URL containing the characters "php"

For example

http://www.mysite.com/this-url-contains-the-characters-php.html --> 404

or

http://www.mysite.com/category/php/post-slug --> 404

etc

Any URL on my site that contains the characters "php" in the URL results in a 404 error.

I am baffled (no doublt because I am a newbie).

To make matters worse, searching for help using "php" in the Google search query makes it impossible to find anything -- there is just so much stuff about using PHP with nginx that you cannot sort through it all....

Anyway -- can you guys think of something to check?

Open to ideas.

Thanks,
Mark
Re: Help with weird URL parsing problem
February 11, 2014 09:59AM
Solved.

My developer determined It was the PHP handler configuration in Nginx.

The section beginning here https://gist.github.com/williejackson/8b31717086d88ecb2d74#file-gistfile1-txt-L32 replaces the section beginning at line 41.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready