Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirecting an index.html_

Discussion in 'General Discussion' started by Titanzhang, Jan 13, 2018.

  1. Titanzhang

    Titanzhang Registered

    Joined:
    Jan 13, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Website Owner
    Okay here is the post again:
    I am new to cPanel and need some help.

    I am using cPanel's in-built Site Publisher for a website and I want that website to point to, for example, www.example.com instead of Example Domain

    I've researched about the .htaccess file, which I had to create and did a search on the arguments to put in this file to direct it but none of the arguments have worked.

    So I presume something I am missing or I am doing wrong.

    Your suggestions would be most helpful.
     
    #1 Titanzhang, Jan 13, 2018
    Last edited by a moderator: Jan 13, 2018
  2. Titanzhang

    Titanzhang Registered

    Joined:
    Jan 13, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Website Owner
    A little update on this:

    I managed to recover the website by removing the .htaccess file, found two index.htmls in the same directory (one of them is index.html_), and re-published, and is now directing to a non-www domain i.e. mysite.com. Can the public still connect to and see this website?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,396
    Likes Received:
    1,605
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The public will be able to access any file under the public_html directory unless .htaccess rules or it's permissions are specifically configured to deny access to it. That said, I believe this is the feature you are looking for:

    Indexes - Version 68 Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page