Jump to content

RewriteRule & Internal redirects error


bearsfoot

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.