Comment » Fixed: ExpressionEngine index.php Include Method Pagination Error
I did a lot of cleaning up today on this website, such as removing the little bugs and making it conform the the XHTML 1.0 Strict Doctype. (It appears that most pages work, with the exception of the Amazon affiliate links for my individual book review pages. But I’m not too concerned about that.) The Firefox Web Developer toolbar was invaluable for this process.
One of the things I discovered was two of my pagination links on the bottom of my homepage did not work. These are dynamically generated, and I suspected it had something to do with how I have EE configured to remove index.php from the URL. When I typed in http://annekowalski.com/P5/ I would get a 404 error. But when I typed in http://annekowalski.com/P10/ I wouldn’t.
If I wrote it as http://annekowalski.com/index.php/P5/ I would get the correct page, no errors.
It turns out that there’s a little bug, at least for my situation, with how the code for the .htaccess is written. I am using the include method, and the wiki for this section has the last conditionals written as P[0-9]{2,8}. It worked when I changed it to P[0-9]{1,8} , as described in an EE forums post.
I wonder why it is written that way in the wiki, when other people seem to be having the same problem with the first two page links not working.
