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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice