![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | 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 |
|
| | #2 (permalink) |
| Civilians | 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! |
|
| | #3 (permalink) |
| Civilians | "GreyWyvern" <spam@greywyvern.com> wrote in message news p.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. |
|
| | #4 (permalink) |
| Civilians | 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 |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
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 |
![]() | ![]() | ![]() |