Divi WordPress Theme

Topic: concept of .htaccess  (Read 1325 times)

Offline aaron88737

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
concept of .htaccess
« on: August 21, 2014, 05:12:00 AM »
Hello,

Please let me know the concept of .htaccess and what contents we have to insert into it
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 604
  • iTrader: +153/-0
    • View Profile
Re: concept of .htaccess
« Reply #1 on: August 21, 2014, 10:06:49 AM »
.htaccess file can be used for various purposes as follow:

- You can write Apache rewrite rules to rewrite your URLs (dynamic to static)
- You can write rewrite rule for the URL redirection
- You can restrict the directory access to certain IP address only
- You can overwrite PHP settings using .htaccess (provided your server is configured in that way)

- Kailash

Offline Web_news

  • New Member
  • *****
  • Premium Member
  • Posts: 44
  • iTrader: +5/-0
    • View Profile
Re: concept of .htaccess
« Reply #2 on: August 21, 2014, 11:18:41 AM »
In addition to above, it is also possible to prevent executing any file extension (i.e. .pl, .cgi etc) using .htaccess and you can also set expiry for static contents using .htaccess (provided you have installed necessary apache modules).

Offline DouglasSmith

  • New Member
  • *
  • Posts: 18
  • iTrader: +0/-0
  • Hello! I am Douglas Smith.
    • View Profile
Re: concept of .htaccess
« Reply #3 on: September 30, 2014, 04:16:51 PM »
Generally we use .htaccess file when you don't have access to the main server configuration file. It is common configuration that user generally used for authentication should done. Well .htaccess file should be used in the case where the content providers will need to change the configuration.

Offline MurielCalzada

  • New Member
  • *
  • Posts: 11
  • iTrader: +0/-0
    • View Profile
Re: concept of .htaccess
« Reply #4 on: November 25, 2014, 07:14:25 PM »
The .htacess is a file directory level configuration file which is supported by several web users. This will allow for decentralized management of web servers.
Divi WordPress Theme
Tags: