Tags » Htaccess

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


.htaccess Cheat Sheet

All the important Apache .htaccess web server rules and config options


Web Technology

How to redirect HTTP traffic to HTTPS using an .htaccess file

The below code when added to an .htaccess file will automatically redirect any traffic destined for http: to https:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 

Using mod_rewrite to convert dynamic URLs to SEO friendly URLs

SEO friendly URLs  (sometimes also known as Semantic URL or clean URL )  are intended to improve the readability and accessibility of the website. Nowadays these URLs play an important role improving the page rank. 236 more words


Remove slash at the end of .html

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)/$ /$1