Smartial Wayback Machine Text Extractor
However, it is different from the archived page (1 redirect/s found...)
This article contains 6 images. You will find them at the very end of the article.
This article contains 337 words.
Create Search Engine Friendly URLs using .htaccess - Jagadeesh M
In this post, we will see how to use .htaccess to create search engine friendly URLs. Using .htaccess, mapping dynamic pages to static address is easy and this helps search engines to index the pages fast, effective and strong.
Initially, create a file .htaccess in your favorite editor, use the rewrite rule as below to map dynamic id passing url's to static version. Use the code and create your dynamic pages for search engines spiders
************************************************************** ## Rewrite Rules ## RewriteRule ^category/([0-9]*)/([0-9]*)/([a-z_]*)$ category.php?id=$1&page;_id=$2 [L]
RewriteEngine on
RewriteRule ^category/([^/]*)/([a-z_]*)/([^/]*)$ category.php?r_name=$2&id1;=$1
***************************************************************
For eg: Originally the page URL looks like subcategory.php?id=5&page;_id=1
Using the above .htaccess code, you can create the URL as
category/5/1/product_name
Here,
RewriteRule ^category/([0-9]*)/([0-9]*)/([a-z_]*)$
^ - Refer to start
Category - creates a folder as mentioned name
/ - Used for virtual partition
[0-9] - Writes single number as folder name
[0-9]* - Writes n numbers as folder name
[a-z_] - Writes single letters as folder name
[a-z_]* - Writes letters as folder name
$ - Refer to end
Additional information:
Your id passing pages might have indexed through some referral and so, you can use the below code to avoid error pages, create a 404pagenotfound.php and add your a message to your visitors to navigate to home page for informationโs
*****************************************************************
## Trace Errors
ErrorDocument 404 /404pagenotfound.php
*****************************************************************
Hope you will like the post and its useful :)
Share with your friends:
Labels: .htaccess, Analysis SEO, Search Engine Friendly URLs, search engines spiders, SEO free advice, SEO Free tips
Images:
The images are downsized due to limited space here. The original dimensions may differ.Click on the image to open it on a new tab.