Category: Apache

Protect your directory with .htaccess and .htpasswd

.htaccess Have a demo / file that you want to prevent visitor without permission to see it? There are a lot ways to do it, one of it is protect it using apache .htaccess First you need to create a empty .htaccess file, if you already have one in your root folder, just add the […]

Read more

Beautify URL with htaccess & php – PART 2

OK, let’s start with the htaccess  Open up the .htaccess file you’ve create in PART 1, add the following line to tell Apache you need to load the mod_rewrite to overwrite some settings of the way the file reads the url.  RewriteEngine on  And add this 3 lines after that: RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d RewriteRule […]

Read more

Beautify URL with htaccess & php – PART 1

Want to have a simple way to implement your php files with beautiful url?

Read more