We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

index.php in Pagination URL

Development and Programming

spencerthayer's avatar
spencerthayer
4 posts
3 years ago
spencerthayer's avatar spencerthayer

Hello everyone, I have two URL issues one that seems like a bug, and the other is a question.

The first being that EE is putting the index file into my pagination URL string, for example /index.php/default/news. HTACCESS will remove the index.php from the URL upon visit but for my use case, this actually isn’t a solution. I need the URLs generated from EE to be exact and I cannot rely on HTACCESS.

The second problem is the URL pagination URL is /default/news rather than just news. When I change my paginate_base to the news it breaks with the error, “The page you requested was not found,” for the URL //EXAMPLE.COM/news/P6. I have no idea why I have to have default in the URL string, it’s kind of ugly, is there a way to remove it?

Below are code examples…

[ CANNOT POST CODE EXAMPLES ]

Error Message Due to a heavy increase of spam within our community, the privilege of posting certain content is currently reserved for active community members and those who have purchased software.

If you feel you have received this in error, please contact [email protected] with a support key of:

05d78ac8-72fc2dfe-d72f42f3-5ccffb5a

       
spencerthayer's avatar
spencerthayer
4 posts
3 years ago
spencerthayer's avatar spencerthayer

Is there a better place to talk about Expression Engine problems rather than the forums which seem to always be wonky?

       
Andy McCormick's avatar
Andy McCormick
183 posts
3 years ago
Andy McCormick's avatar Andy McCormick

re: index.php: You need to remove index.php from your “Website index page” in Settings -> URL and Path Settings

Re: URL. Is your News template inside a template group called “default”? If so, you need to use Pages, Routing, or use a 3rd party add-on like Structure to create URLs that don’t use the default template group/template routing.

👆 1
       
Tom Jaeger's avatar
Tom Jaeger
228 posts
3 years ago
Tom Jaeger's avatar Tom Jaeger

First reaction is exactly what Andy mentioned… Beyond that I’d take a look at the paginate_base parameter as well.

ON the better place to post stuff, I’d recommend joining Slack. There’s about 7,000 people in there, and it has become to go to place for ExpressionEngine

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.