/    Sign up×
Community /Pin to ProfileBookmark

SEO: search-friendly URLs worth it? possible without big redesign?

I’m working on an extensive site containing about 1000 PHP files. In addition to search pages and account pages and so on, a great many of these files accept numeric query string parameters:

[code]http://example.com?id=1234[/code]

Which might load up a school named “Occidental College” or perhaps a Career such as “Computer Programmer – Applications”.

We are considering trying to alter the structure of our site to present more user-friendly URLs like this instead:

[code]http://example.com/careers/Computer_Programmer_-_Applications[/code]

.

I completely understand how we might use mod_rewrite and some database work to map that URL onto [url]http://example.com?id=1234[/url]. However, I’m wondering a couple of things and would like some input.

1) If we don’t change our internal links to a page (i.e., they still point to [url]http://example.com?id=1234[/url]) then this doesn’t really help our search engine ranking unless external sites somehow know to link to the new fancy URLs, right? The perhaps futile hope is that we don’t have to go change all the links in our 1000 PHP files and that we might use some mod_rewrite trickery to gain some advantage here.

2) Suppose I type [url]http://example.com?id=1234[/url] into my browser. Is it possible to display the search-friendly URL ([url]http://example.com/careers/Computer_Programmer__Applications[/url]) in the browser instead so that if someone copies it to an email they get the long fancy URL?

2a) Is it possible to efficiently redirect a search engine looking for [url]http://example.com?id=1234[/url] to [url]http://example.com/careers/Computer_Programmer__Applications[/url] and thereby gain all the advantages of our supposedly search-engine-friendly URL? Would we need to send an HTTP response code (301? 303?). Will the search engine be smart enough to know that the search-friendly URL is the ‘real’ link when it encounters the old-style link in the HTML of our site or somebody else’s site? Does it help our ranking at all? What is the best technique for this?

3) I’ve heard that Amazon went from the query string / id approach to search-friendly URLs by using mod_rewrite type technology and ignoring the middle search-friendly part of a URL and putting the id part at the very end of the URL like this book called “Choke” by Chuck-Palahniuk.
[url]http://www.amazon.com/Choke-Chuck-Palahniuk/dp/0307388921/ref=sr_1_1?ie=UTF8&s=books&qid=1238107513&sr=1-1[/url]

This is what I think I should be shooting for and I understand how to accept the URL on our server and load up the right content, I do not understand how to capitalize on it to improve our search ranking. Thoughts?

4) Will this really help that much?

Any and all discussion of this is welcome and encouraged.

to post a comment
SEO

4 Comments(s)

Copy linkTweet thisAlerts:
@gbonnetMar 27.2009 — Hi,

I'm not an expert in php so I can't help much on this side but definitely go for the keyword rich version of the URL ! That will help a big deal.

You can also create 301 redirections (not 302 nor 303) from your ?id=123 to your /cat/keyword-keyword2.php

301 redirections are SEO friendly.
Copy linkTweet thisAlerts:
@Nickfb76Mar 30.2009 — definently utilize the url re-write. Why not have your keywords in your title? it can only help you. I would also suggest hyphens over underscores, but thats just my personal preference.
Copy linkTweet thisAlerts:
@seo_promotionApr 28.2009 — Doing Mod-Rewrite will help your website to achieve higher seo rankings.

It is always a good practice to use SEO friendly Urls. However, if you do not want to use SEO friendly urls, then it wont result in any sort of penalty of negative influcence.

It is just like Greasing Palm of Google search engine engine crawler. :p
Copy linkTweet thisAlerts:
@sneakyimpauthorApr 28.2009 — I have managed to get a pretty awesome rewrite going using mod_rewrite on a testing server. It will take this url:
http://mydomain.com/category/db/ug/ug_1.php?id=1234
and cause a 301 redirect (permanently moved) to this:
http://mydomain.com/widgets/awesome-widgets/Awesome-Widget-Foo/1234

Additionally, mod_rewrite knows when it receives that 2nd url that it should internally rewrite it (no redirect) to the original file with a &rewrite=1 bit added to the query string. This works and attempts to visit the original page get 301 rewritten and then the 301 rewritten request with the SEO-friendly url will load the correct page with the correct data.

HOWEVER there is a problem. All the images, scripts, and links are broken in the resulting page because they are evaluated in the browser relative to the new-fangled seo-friendly page. How do you deal with this problem?
×

Success!

Help @sneakyimp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...