Magento Expert Forum - Improve your Magento experience

Results 1 to 8 of 8

What is the use of .htaccess file and how to make it?

  1. #1

  2. #2
    Junior Member
    Join Date
    Sep 2016
    Posts
    228
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    The .htaccess file serves as a control to authorize and authenticate who can view your site (or certain page of the site). While you want your site to be visible to everyone, there may be times when it is visited by spambots and you start to receive many spam mails, comments, form submissions and so on. With the .htaccess file, you will be able to block access that comes from unauthorized sources (such as particular domain names or IP addresses).

    Rather than blocking access, you can also set a password (together with the .htpasswd file) for your site and grant only authorized personnel to visit your site. This can be used on a multi-author blog or a collaboration site.

    Corporate Gift Ideas | Customized Pen Drives

  3. #3
    Junior Member
    Join Date
    Aug 2016
    Posts
    107
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    .htaccess is a configuration file for use on web servers running the Apache Web Server software

  4. #4
    Junior Member
    Join Date
    Dec 2016
    Location
    Andaman and Nicobar Islands
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    .htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.

  5. #5
    Junior Member
    Join Date
    Dec 2016
    Location
    Chennai
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    You may have been working on a website, or reading an article about web development, and heard about the .htaccess file, but wondered what it was, or what, if anything, you can do with it. This tutorial will tell you the basics about .htaccess, and show you a few ways you can use it on your website.

  6. #6
    Junior Member
    Join Date
    Aug 2016
    Posts
    184
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default

    .htaccess is a configuration file for use on web servers running the Apache Web Server software.

  7. #7
    Junior Member
    Join Date
    Dec 2016
    Posts
    77
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default

    Htaccess files are hidden plain text files that are on the server to help control how your visitors interact with your website. The htaccess file is also used to block specific traffic from being able to view your website. If you look for your .htaccess file you'll see that there's no filename. The extension is .htaccess which tells the server what type of file it is. In cPanel you can see if you have a current .htaccess file using file manager but you will need to make sure you have selected to view hidden files. If you are not familiar with using file manager please read our article. To view hidden files in file manager, select the 'file manager' icon in cPanel and make sure the box is checked next to 'Show Hidden Files.' Then click 'OK' and you will be able to view hidden files.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •