473,327 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

SEO Friendly URL Rewirting

190 100+
I am having a site http://bhoomiandbhavan.com/index.php ( under construction ) ,

I want to know that how can i write the SEO Friendly URL Rewriting code for listings ?
May 21 '10 #1
2 1466
dlite922
1,584 Expert 1GB
Search Engines are smart these days, you don't need friendly URL to search engines, you need friendly URLs to the user.

To search engines, these two are the same:

...com/viewproperty.php?id=123
...com/viewproperty/id/123

Just use dashes instead of underscores, avoid long query strings (e.g. from a form submission)

As far as the method to do it? the most popular one is Apache's (or your webservers) mod_rewrite function. If this site is hosted, your host may limit if you can do this or not.


Dan
May 21 '10 #2
Atli
5,058 Expert 4TB
Yep, modern search engines actually prefer to have the original query string, rather than a rewritten URL. When you rewrite the URL, you are basically "hiding" information, and in some cases making it impossible for the crawler to figure out what the available information means.

For example, if you have this URL:
- http://example.com/article.php?id=123
A search engine will be able to deduce the following:
  • This is a PHP page; dynamically generated content. (This may affect caching or re-crawl rates, or any number of other things.)
  • The current page is tagged with an "id" of "123". (Useful for obvious reasons.)

If you were to rewrite that into this:
- http://example.com/article/id/123/
You are basically:
  • Giving the false impression that this is a static page (meaning; not modified by query string parameters).
  • Hiding what the number "123" actually is. It would simply be considered a directory name; a sub-directory of the "id" directory, rather than a parameter linked to the "id" keyword.

It is best for the search engine (and thus your rating) if you just use the query string as it was meant to be used, rather than try to "trick" the search engine into thinking that a dynamic page is static. (Static pages rank no higher than dynamic once.)

However, you would be wise to limit the query parameters to two or three values, and try not to mix the order of the parameters to much. It's also best to use proper words, rather than single letters or illegible abbreviations. (Both search engines and users may be able to determine context based on keywords. Like, the parameter name "desc" would infer a description, where the letter "d" may not.)
May 22 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: techy techno | last post by:
Hiii Hello.. I just wanted to know if anyone can tell me how can I give my website visitors the feature of "FRIENDLY PRINTING" through IE. I would definitely like to give a feature like...
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
1
by: weiwei | last post by:
HI I am having a problem with print friendly function with asp, I have download some code regard with print friendly, it works fine with static html information, however, I have the dynamic pages...
4
by: ST | last post by:
Hi, I'm implementing a printer friendly feature for all the pages on a web site. I'm separating the header, content, and footer into separate ascx files, which are contained in the main file. ...
1
by: Matt_Matt | last post by:
My application has a blank freindly name in the windows firewall exception list when windows automatically registers it via user prompt that says: Do you want to keep blocking this program? ...
4
by: Matt Mercer | last post by:
Hi, I have a asp .net/VB web app that does the typical submitting and retrieving from a SQL database. I am lost as to how I should create a print friendly page for the data. Here is the...
2
by: Ron | last post by:
Hello, I am working on a registration application for my companies intranet. The intranet is ASP classic based as of now. Unfortunately I only know ASP.NET. But that was all okay until I decided I...
2
by: Sandy | last post by:
Hello - I tried to google this, but got back every page on the whole entire web that has printer friendly versions . . . I have a panel containing text from a repeater that also contains text...
1
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but...
15
by: Prisoner at War | last post by:
Okay, I'd like to create a print-friendly website, so I've been reading up on how to create print-friendly pages (without duplicating my site, of course, by having separate versions of each...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.