Site Redirection loops if using same site.

Version 1.47

Bugfix
Finished

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 ^/$ http://www.domain.com/somefolder http://www.directadmin.com/forum/showthread.php?t=26719 http://forum.directadmin.com/showthread.php?t=50249

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