bearsfoot Posted November 24, 2009 Share Posted November 24, 2009 Hi, I have the following rule : RewriteRule products/(.*)/ /pages/index.php?view=products&id=$1 which rewrites http://www.mysite.com/products/1/ into http://www.mysite.com/pages/index.php?view=products&id=1 However, if i just want to remove the trailing slash from the url. Eg .. http://www.mysite.com/products/1 I have tried the following rules, but the end result is always 'Request exceeded the limit of 10 internal redirects'. RewriteRule products/(.*)$ /pages/index.php?view=products&id=$1 RewriteRule products/(.*) /pages/index.php?view=products&id=$1 Is this a server configuration problem ? The rule seems ok ? Thanks. Link to comment https://forums.phpfreaks.com/topic/182764-rewriterule-internal-redirects-error/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.