Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 05-04-2005, 12:00   #1 (permalink)
elyob
Civilians

 
Default URL Rewrite

Hi, I'm just redeveloping my site and am looking at mod_rewrite. My
understanding is that search engines prefer urls such as
www.mysite.com/uk/london/harrods rather than
http://www.mysite.com/index.php?coun...n&shop=harrods

What happens if someone is doing a search on just London and I want to show
a list of all London's I have listed (e.g. Londonderry, UK - London, UK -
London, CA etc). I would then have www.mysite.com//London/ The double // is
a problem with search engines, so I've heard, and looks dreadful too. They
can search on all 3 fields individually or mixed, so am just wondering what
I should fill empty fields with to make the URL tidier. Or am I just
thinking about this the wrong way round?

Thanks

Nick


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 05-04-2005, 12:00   #2 (permalink)
GreyWyvern
Civilians

 
Default Re: URL Rewrite

And lo, elyob didst speak in alt.www.webmaster:

> www.mysite.com/uk/london/harrods
>
> They
> can search on all 3 fields individually or mixed, so am just wondering
> what
> I should fill empty fields with to make the URL tidier. Or am I just
> thinking about this the wrong way round?


Just use a default placeholder for each category in the URI when it
doesn't exist:

Like www.mysite.com/country/London/shop

or www.mysite.com/uk/town/harrods

That would be the readable way, but perhaps you value shorter URIs? Then
you could just use a dash, which is okay with search engines.

www.mysite.com/-/London/-
www.mysite.com/uk/-/harrods

It might not be completely "readable", but it's certainly obvious what
terms you're searching for.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com/ringmaker - Orca Ringmaker: Host a web ring
from your website!
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-04-2005, 16:00   #3 (permalink)
elyob
Civilians

 
Default Re: URL Rewrite


"GreyWyvern" <spam@greywyvern.com> wrote in message
newsp.sp8563vqsl6xfd@news.nas.net...
> And lo, elyob didst speak in alt.www.webmaster:
>
>> www.mysite.com/uk/london/harrods
>>
>> They
>> can search on all 3 fields individually or mixed, so am just wondering
>> what
>> I should fill empty fields with to make the URL tidier. Or am I just
>> thinking about this the wrong way round?

>
> Just use a default placeholder for each category in the URI when it
> doesn't exist:
>
> Like www.mysite.com/country/London/shop
>
> or www.mysite.com/uk/town/harrods
>
> That would be the readable way, but perhaps you value shorter URIs? Then
> you could just use a dash, which is okay with search engines.
>
> www.mysite.com/-/London/-
> www.mysite.com/uk/-/harrods
>
> It might not be completely "readable", but it's certainly obvious what
> terms you're searching for.
>
> Grey


When visiting that URL, should the target page URL remain as /-/-/harrods? I
seem to remember from previous tests that it just repointed the url to
index.php?name=harrods

Thanks for the advice. I think the dash looks more readable, but the first
example lets users know how to edit the URL's manually. So, not really sure
which method is best.



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-05-2005, 00:00   #4 (permalink)
Gregory Toomey
Civilians

 
Default Re: URL Rewrite

elyob wrote:

> Hi, I'm just redeveloping my site and am looking at mod_rewrite. My
> understanding is that search engines prefer urls such as
> www.mysite.com/uk/london/harrods rather than
> http://www.mysite.com/index.php?coun...n&shop=harrods


Both are perfectly acceptable to search engines.
What they don't like is session_ids and similar state information.

They need to be able to spider your site.
If you need a "search box" to navigate your site search engines wont enter
arbitrary information.

> What happens if someone is doing a search on just London and I want to
> show a list of all London's I have listed (e.g. Londonderry, UK - London,
> UK - London, CA etc). I would then have www.mysite.com//London/ The double
> // is a problem with search engines,

Err, why?

> so I've heard, and looks dreadful
> too. They can search on all 3 fields individually or mixed, so am just
> wondering what I should fill empty fields with to make the URL tidier. Or
> am I just thinking about this the wrong way round?
>
> Thanks
>
> Nick


gtoomey
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ay Caramba! . . . dig to rewrite Mexican history milmor_1 Chit-Chat 13 08-27-2006 02:07
Re: phpDev mod rewrite regex broken? Dylan Parry Web Design 2 06-24-2005 20:00
[News Feed] Bush Signs Big Rewrite of Bankruptcy Law (AP) Forum Mouse News Articles 0 04-20-2005 16:00
htaccess rewrite code question Allis Web Design 2 02-04-2005 16:00
Redirect/Rewrite to another host Robert Web Design 9 06-22-2004 04:40


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 11:31.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 1.01987 seconds with 19 queries