htaccess Tutorial for Beginners

3 minutes read

.htaccess file or configuration file provide a way to make
configuration changes on a per-directory basis. A file that containing one or more
configuration directives, is placed in a particular document directory.

htaccess-logo

How to Create a .htaccess File?

Open any text editor application or notepad and file save as with .htaccess name. Enable mod_rewrite extension in php.ini file in Apache Web Server configurations if disabled.

RewriteEngine On it is turn on Rewrite Rules in Apache Server.

 How to redirect from domain.com to www.domain.com ?
.htacces code for redirecting mydomain.com to www.mydomain.com

How to make a seo friendly url using .htaccess ?

Static URLs are got much pretty ranking into Search Engines.
Search Engines are known to index the content of dynamic pages more slower than static pages.

http://phpmysqlquery.com/user.php?username=Avanish
to
http://phpmysqlquery.com/user/Avanish

 

 

Facebook Twitter LinkedIn Telegram Whatsapp

Related Posts:

HTML5 is the latest and enhanced version of HTML. HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web.   HTML5 provides some new elements and attributes that helps in building a modern ...
cURL is a best library for file transfer via different types of protocols. cURL supports the transport via POST, GET, FTP upload and much more. cURL is also able to authenticate on the destination server or website. How to send files using PHP and cURL In this...
How to manage international languages in MySQL database using php ? If you want to store multiple languages like Arabic, French, Hindi or Urdu to your MySQL database, default settings is not valid to do that to insert all languages in database. If you insert ...