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

How do i fix the url has too many segments error?

How Do I?

QuickAF's avatar
QuickAF
1 posts
5 years ago
QuickAF's avatar QuickAF

Hi there, i am having, “Error: The URL contains too many segments.” the link is like www.mysite.com/content/something/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/P4 i am trying to redirect this to a 404 page or somehow fix it. How do i do this? thanks.

       
Wessel's avatar
Wessel
35 posts
5 years ago
Wessel's avatar Wessel

Looks like an .htaccess error with infinity redirects?

       
neha's avatar
neha
3 posts
2 years ago
neha's avatar neha

Check your site’s .htaccess file, which controls URL routing and redirects. Make sure it’s properly configured, and there are no rules causing infinite redirects. Here is an Ex:

RewriteEngine On RewriteBase /

Remove index.php from URLs

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L]

save and check if the issue resolve manually check or use browser developer tools to inspect network requests and redirects or use any online tool like Check URL redirection  This can help you to get detail redirection chain and its status code. 

and

For dealing 404 you can create a custom 404 template in ExpressionEngine. add this on your .htaccess

ErrorDocument 404 /index.php/template_group/template_404

       

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.