Announcement

Collapse
No announcement yet.

How to Edit Your .htaccess File in cpanle

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Edit Your .htaccess File in cpanle

    Hi,

    I am unable to see linux file to edit in Cpanel.. can anyone explain y am unable to see .htaccess file in Cpanel root folder.. If I am going to create another new .htaccess , it's showing already file is excited ....


    Thanks

  • #2
    Use ftp and upload one.
    Have a Script or Snippet you want to share?

    WWW Standards: HTML 4.01,
    HTML 5, CSS2.1, CSS3, XHTML 1.0
    PHP Standards: PHP Standards

    Comment


    • #3
      When you you use Cpanel file manager, click on show hidden files before you enter the root folder then the .htaccess file will appear.

      Comment


      • #4
        Try this

        Open up your file manager using cPanel,

        you should then see something like this in the URL address:

        Please note that domain.com will be your domain and that /x3/ is your cPanel theme so it may be different too.

        Code:
        http://domain.com:2082/frontend/x3/filemanager/index.html.........
        the URL then goes on with some more stuff...
        After the index.html add the following,

        Code:
        ?showhidden=1&dir=/public_html
        So you will now have:

        Code:
        http://domain.com:2082/frontend/x3/filemanager/index.html?
        showhidden=1&dir=/public_html
        That should then display your hidden folders, including .htaccess

        Or another way is to select any file in your /public_html directory and click edit.

        Once you have that file up, you need to change the URL.

        This is what will show:

        Code:
        http://domain.com:2082/frontend/x3/filemanager/editit.html?file=INSTALL.txt&fileop=&dir=%2Fhome%2F......
        As you can see the INSTALL.txt is green this is the name of the file I clicked on to edit, so your will be different, in the url just replace INSTALL.txt (or whatever file you clicked on) with .htaccess

        so it will look like:

        Code:
        http://domain.com:2082/frontend/x3/filemanager/editit.html?file=.htaccess&fileop=&dir=%2Fhome%2F......

        Comment

        Working...
        X