Site Redirection loops if using same site.

Version 1.47


If a user redirects the path / on his domain to /somefolder, the .htaccess code that is added will append somefolder to itself over and over in a loop because .htaccess files are recursive to lower level directories so somefolder will also trigger a redirect. The fix will be to do a check if the domain being redirected to is the same as the domain being redirected from. If it is, use this instead: RedirectMatch ^/$

Interested to try DirectAdmin? Get a 30-day Free Trial!