Http redirect and .htaccess file

Hello community, please how do I regenerate the .htaccess file? I tried a permanent redirect of http:// domainx.com to secured https://domainx.com. Unfortunately, it returned a redirect error on the site homepage (page not found, redirect taking too long) and moved the index.html page to a different url on the domain. It returns the index.html to the homepage when the .htaccess file is renamed (deactivated) but breaks every other link on the site (the url cannot be found on the server).

How can I generate a fresh .htaccess file? Thanks

  • 1492
  • More
Replies (1)
    Login or Join to comment.