Title: Permalink problem only with pages
Last modified: August 19, 2016

---

# Permalink problem only with pages

 *  Resolved [hypesciencecom](https://wordpress.org/support/users/hypesciencecom/)
 * (@hypesciencecom)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/)
 * Hello,
 * I have recently installed (new install) WP 2.5 for this specific website.
 * Recently I saw that the links dynamicly created (i.e. /index.php/about) to pages
   do not work, but if I go to the page using the “?page_id=”, works. Slugs are 
   working file for posts, thought.
 * For example, the page:
 * [http://hypescience.com/?page_id=46](http://hypescience.com/?page_id=46)
 * Works fine. But the same page with slugs, dont:
 * [http://hypescience.com/index.php/politica-de-privacidade/](http://hypescience.com/index.php/politica-de-privacidade/)
 * I get the “Sorry, no posts matched your criteria.” message when I try to load
   a page with slugs in the address bar.
 * I briefly changed themes to test and the same happener with the WordPress default
   theme.
 * My permalinks structure is “/index.php/%postname%/”, because I use IIS6 under
   Windows 2003. I have other blogs that I have not upgraded to 2.5 yet. Right now
   I tested the slugs with pages and it is working fine so far.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [hypesciencecom](https://wordpress.org/support/users/hypesciencecom/)
 * (@hypesciencecom)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/#post-745933)
 * I discovered something curious.
 * I updated a test-only blog and applyed the same permalinks structure. Had the
   same issue. And it was working before.
 * Then I changes te permalink structure again to:
 * /index.php/%year%/%monthnum%/%day%/%postname%/
 * Worked. It worked on both blogs.
 * All that made me think that it is a bug on permalinks on wp 2.5 that makes it
   not work with the /index.php/%postname%/ structure. at least on IIS.
 * But then, I tried to test again and IT WORKS NOW!
 * Crazy!
 * If you need I could help testing it.
 *  [FireMotion](https://wordpress.org/support/users/firemotion/)
 * (@firemotion)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/#post-745934)
 * Confirmed here:
    – After upgrading to 2.5, /index.php/%postname%/ resulted in“
   Sorry, no posts matched your criteria.” (whatever theme is used) – Changing the
   structure to something else, and then changing it back fixes it.
 *  Thread Starter [hypesciencecom](https://wordpress.org/support/users/hypesciencecom/)
 * (@hypesciencecom)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/#post-746169)
 * I did that and worked. Then I did other changes and the problem came back up 
   again.
 * Any other suggerstions?
 *  Thread Starter [hypesciencecom](https://wordpress.org/support/users/hypesciencecom/)
 * (@hypesciencecom)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/#post-746170)
 * [http://hypescience.com/index.php/sobre](http://hypescience.com/index.php/sobre)
 *  Thread Starter [hypesciencecom](https://wordpress.org/support/users/hypesciencecom/)
 * (@hypesciencecom)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/#post-746171)
 * I did this:
 * > Hello.
   >  I fixed this error on my website. In my case the problem was that wp2.5
   > was not able to recongnize a page because my permalink started with %postname%
   > so I modified wp-includes/query.php I added:
   > } elseif ( (” != $qv[‘name’]) && (” == $qv[‘year’]) ) {
   >  $this->is_single =
   > false; $this->is_page = true;
   > Before:
   > } elseif ( ” != $qv[‘name’] ) {
   >  $this->is_single = true;
   > Now wp looks if the file also had a year (it could be monthnum or day) so it
   > can recognize a page as a page index.php/page-name
   >  This only fix the case 
   > when you use index.php/%postname%/%other-variables% Hope this help you. Sorry
   > for my English :/
 * Ogigin: [http://wordpress.org/support/topic/164360/page/2?replies=100](http://wordpress.org/support/topic/164360/page/2?replies=100)
 * It did work. The pages came back working. The problem was that no posts worked
   anymore. Corrected the pages permalink and messed up posts permalink.
 *  Thread Starter [hypesciencecom](https://wordpress.org/support/users/hypesciencecom/)
 * (@hypesciencecom)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/#post-746172)
 * [http://trac.wordpress.org/ticket/6650](http://trac.wordpress.org/ticket/6650)
 * This fix solved the problem.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Permalink problem only with pages’ is closed to new replies.

## Tags

 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [slugs](https://wordpress.org/support/topic-tag/slugs/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [hypesciencecom](https://wordpress.org/support/users/hypesciencecom/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/permalink-problem-only-with-pages/#post-746172)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
