|
   |
|
|
Search Engine-Friendly URLs
By Ashokrajan Balakrishnan of Metis Technologies Private Limited
In the Internet world, database oriented and dynamic sites are most popular. But the easiest way to pass information between your pages is with a query string. If you are not aware of what a query string is, it's a string of information tacked onto the end of a URL after a question mark. We must know what is friendly URL Well, most search engines except Google will not index any pages that have a question mark or other character (like an ampersand or equals sign) in the URL. Some of the most popular dynamic sites out they are not being indexed - and what good is a site if no one can find it? The answer is Search engine friendly URLs. There are many popular ways to pass information to your pages without the use of a query string, so that search engines will index those individual pages. I will use some of the useful techniques in this article. All 3 work in Php with Apache on Linux platform only. Technique 1: If you look above this article on the address bar, you’ll see a URL like this: http://www.webmasterbase.com/article.php/999/12. Site Point actually uses the path information method to create their dynamic pages. There is a special feature in Apache named "look back" feature that scans backwards down the URL if it doesn’t find what it's looking for. In this case there is no directory or file called "12", so it looks for "999". But it find that there's not a directory or file called "999" either, so Apache continues to look down the URL and sees "article.php". Suppose this file is not found then Apache calls up that script. Apache also has a global variable called Path Info that is created on every http request. What this variable contains is the script that's being called, and everything to the right of that information in the URL. In the below example we are using, Path Info will contain article.php/999/12. There is a question will rise, how do I query my database using article.php/999/12? First you have to split this into variables which we can use. And you can do that using php’s explode function: $var_array = explode("/",$path_info); After completion, we will have the following information: $var_array[0] = "article.php" $var_array[1] = 999 $var_array[2] = 12 Here we are rename $var_array[1] as $article and $var_array[2] as $page_num and query your database. Search engine friendly URL means URL address created for our website be easily understand by the major search engines such as Google, yahoo and MSN. For example, suppose our website URL address is very long and it is not understand by the search engines will not be indexed in the search engine Index listing. Suppose if viewers want some details about their requirements they probably go for searching and they search the particular item through search engines such as Google, yahoo or MSN. If search engine cannot understand the keyword which you have given in your site, your site will not be listed in the Index of the search engines.
|
|
 |
|
PLEASE VISIT THE CONTRIBUTOR'S WEBSITE
No reactions yet.
Please login or sign up to rate this intel.
Please login or sign up to add a comment.
The copyright for this content entitled "Search Engine-Friendly URLs " has been specified by the contributor as:
Creative Commons Attribution-Share Alike 3.0
Details
This content may be copied, distributed, and modified, as long as a) the original author is acknowledged with a link back to the content page, and b) if the work is modified, the result is distributed with this same license.
If you use this content according to the license specified, you must link to the following URL:
http://ashokb23.qondio.com/
|
 |
|
This intel was contributed by Ashokrajan

Ashokrajan
|
May, 2012
2008
January, February, March, April, May, June, July, August, September, October, November, December
2009
January, February, March, April, May, June, July, August, September, October, November, December
2010
January, February, March, April, May, June, July, August, September, October, November, December
2011
January, February, March, April, May, June, July, August, September, October, November, December
2012
January, February, March, April, May
|
|
Not a member yet?
Qondio is a powerful network for making it online. If you have a website to
promote, we can help.
Sign up and get in on the action.
|
|
Welcome to Qondio! Discover the awesome power this network can deliver by going to our About page. Or you could skip straight to the Sign Up form.
|
|