Forum Moderators: phranque
I've got this:
Redirect 301 /digital-marketing/ http://www.mydomain.com/digital-marketing/digital-marketing.html
Redirect LoopRedirection limit for this URL exceeded. Unable to load the requested page.
And this in the url:
http://www.mydomain.com/digital-marketing/digital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.htmldigital-marketing.html
You could use RedirectMatch and end the tested URL pattern with $ to stop it right there.
Personally, I would use RewriteRule in a similar way -- because you can't have expressions using RewriteRule as well as Redirect/Redirectmatch in the same .htacess without there being a problem with knowing the order they will be evaluated -- and I use RewriteRule a lot.