Tags » Htaccess

How to prevent serving .git directory on web

Recently while working on a web based project which runs on apache2 on EC2 Linux server, PHP, MySQL, using git as a source version control system(VCS), i was able to access the .git repository from browser like http://example.com/.git/ 480 more words


Block an IP address range using the .htaccess file

I detected an attack to one (compromised) server running Apache and PHP. A fair amount of request were being made to a hacked resource. So one of the steps to avoid so many request was to block the IP range of the attacker(s). 30 more words


ssl 24/7

While I’ve had ssl on my website for sometime (for anything login related), I had never enabled it by default. First, I had to install the patch the Video Filter module to work with https connections to Youtube. 157 more words


Hàm bổ trợ để tạo ra đường dẫn thân thiện (Url Friendly)

Đây là các hàm bổ trợ để tạo đường dẫn thân thiện cho website các bạn có thể tham khảo ở đây :

Ví dụ chúng ta có 1 chuỗi như sau :  254 more words


How to remove .html from URL

I was adding a new events page to the milspousecoders.org website. When you view the URL (Uniform Resource Locator) it was showing the .html after the page. 170 more words


Apache secure directory with user and password

For installing a new apache web server and create virtual hosts , please read this

To restrict access to some site or sub-directory of a site :

192 more words

URL redirection using .htaccess

Step 1 :Search for .htaccess file on the server.(Cpanel)

Step 2: Check hidden files (under settings) to show all hidden files.

Step 3: If No .htaccess found, 169 more words