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!

SOLVED htaccess help - hide .html

Discussion in 'General Discussion' started by Fadily, Jun 8, 2019.

  1. Fadily

    Fadily Registered

    Joined:
    Jun 8, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Website Owner
    Hi guys,
    I plan to write htaccess code to hide the .html from page url but I found cPanel generated htaccess (# php -- BEGIN cPanel-generated handler, do not edit) on my public_html folder.

    What should I do? can I just delete the file and added a new one for hiding the .html? please do help, I'm new with this and don't have any idea what is this generated htaccess doing there.
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,484
    Likes Received:
    187
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Don't delete it but you can put whatever you want in the file. I suggest putting your directives above the cpanel generated ones.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  3. Fadily

    Fadily Registered

    Joined:
    Jun 8, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Website Owner
    Thanks very much.. I will do that. have a nice day.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,528
    Likes Received:
    2,180
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I've marked this thread as solved.

    Thanks!
     
    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