To change root URL main domain to subfolder we can use .htaccess Your main domain will use the public_html directory for all of its Web site files by default. Addon…