SEO (Search Engine Optimization) is the most important part in web development. After developed your website your website needs do proper SEO to promote your contents with relevant users. There are few trick which will help to boost your website’s SEO score.
I am going to explain how to create SEO friendly URL for your website using .htaccess file. Using the SEO Friendly url’s You can get the high ranked in Search Engine result Pages.
Dynamic URL :
http://freewebmentor.com/page.php?id=251
SEO friendly URL :
http://freewebmentor.com/drupal-tutorial-beginners-step-step.html
Create a .htaccess file on root directory of your website and copy paste below code in your .htaccess file. Below code will rewrite your all dynamic urls with seo friendly url like https://www.freewebmentor.com/2013/09/drupal-tutorial-beginners-step-step.html
1 2 3 | Options +FollowSymLinks RewriteEngine on RewriteRule page-id-(.*)\.html$ page.php?id=$1 |
Recomended :
Beginning Htaccess Programming
Secure your wordpress website from hackers
Enable Gzip Compression Using .htaccess
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: benefits of seo, Create SEO Friendly URL, htaccess, PHP, php seo friendly url, search engine friendly urls, SEO Friendly URL Using Htaccess, seo friendly urls, the benefits of seo