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.
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 /
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.