Forum Moderators: phranque
I have several thousands of html files like: www.domain.com/static-page.html and need to make permanent redirect of all of them accordingly by name to www.domain.com/static-page-20-1-3.php.
Tried to do this with RedirectMatch 301 (.*)\.html$ [wdomain.com...] but getting just some loop
Welcome to WebmasterWorld!
I don't see any problem with your code that would cause a loop. The original requested URL ends in "html" whereas the new URL ends in php, making them sufficiently unique to prevent a redirection loop. I assume the "wwww" domain you typed above is what you wanted - four W's.
However, there may be other mod_alias or mod_rewrite directives at play here -- directives which might reverse the action of your new redirects, causing a loop.
Please post any other information you might have about this problem, and a relevant sample from your server error log.
Jim