These forums are now archived.


Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Sep 22, 2006 1:48 pm 
Offline
NetHosted Customer

Joined: Thu Jan 20, 2005 8:11 am
Posts: 128
Location: Loughborough, Leics
Hi folks
I'm having problems getting search engines to index some of the pages on my website, for example
http://www.cgf.net/plants.php?genus=DAP ... y=MEZEREUM

I have literally 1000s of pages generated in this manner, all with worthwhile content as well. The only trouble is Google just ignores them. I tried generating a sitemap for Google a couple of months back to no effect.
I think I need to make my URLs more search engine friendly - but where do I start?

I would be grateful for any assistance

_________________
Kev Maggs
Part-time webdesigner - www.cynara.co.uk


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 2:19 pm 
Offline
NetHosted Staff
User avatar

Joined: Mon Mar 22, 2004 4:36 pm
Posts: 7373
Kev,

You want to look into mod_rewrite definitely. Using this you could change the above url into something much more bot friendly such as:

www.cgf.net/plants/DAPHNE/MEZEREUM

Using mod_rewrite we can have page urls such as:

http://community.nethosted.co.uk/topic1 ... _urls.html

I've just put together a mod_rewrite rule so that when you follow the above link it will take you to the appropriate page no matter what genus or variety you use. You currently must use capital letters (due to the way your system works). Here is the rule that I have implemented on your site:

RewriteRule ^plants/([A-Z]*)/([A-Z]*) plants.php?genus=$1&variety=$2 [L,NC]

Thanks,

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Earn £30 every time you refer someone to us!
| Follow us on Twitter:
| Members, tell us what of NetHosted!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 3:15 pm 
Offline
NetHosted Customer

Joined: Thu Jan 20, 2005 8:11 am
Posts: 128
Location: Loughborough, Leics
Thanks andrew.
I'd come across mod_rewrite rules whilst searching, but to be honest I didn't understand what it was all about, and it still leaves me a bit bewildered.

do I need to submit a new sitemap to google?

If this works, I take it that people will find the following link on google www.cgf.net/plants/DAPHNE/MEZEREUM

Looking at the page, I will need to change the way my links work (including stylesheet), from being having relative URLs to to absolute addresses. If that makes sense?

Thanks again

_________________
Kev Maggs
Part-time webdesigner - www.cynara.co.uk


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 3:34 pm 
Offline
NetHosted Staff
User avatar

Joined: Mon Mar 22, 2004 4:36 pm
Posts: 7373

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Earn £30 every time you refer someone to us!
| Follow us on Twitter:
| Members, tell us what of NetHosted!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 4:32 pm 
Offline
NetHosted Customer
User avatar

Joined: Mon Feb 14, 2005 12:24 pm
Posts: 218
Location: Worcester

_________________
"I have made this letter long, only because I lacked the time to make it short." - Blaise Pascal 1657


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 4:37 pm 
Offline
NetHosted Staff
User avatar

Joined: Mon Mar 22, 2004 4:36 pm
Posts: 7373

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Earn £30 every time you refer someone to us!
| Follow us on Twitter:
| Members, tell us what of NetHosted!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 7:13 pm 
Offline
NetHosted Customer
User avatar

Joined: Mon Feb 14, 2005 12:24 pm
Posts: 218
Location: Worcester
Andrew,

Pah! For you don't need these namby-pamby new languages and utilities, just a C (pre)compiler and the .

Regards,

Pete

PS Sorry Kev. You can have your thread back soon.

_________________
"I have made this letter long, only because I lacked the time to make it short." - Blaise Pascal 1657


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 7:33 pm 
Offline
NetHosted Staff
User avatar

Joined: Mon Mar 22, 2004 4:36 pm
Posts: 7373

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Earn £30 every time you refer someone to us!
| Follow us on Twitter:
| Members, tell us what of NetHosted!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 7:38 pm 
Offline
Community Liason
User avatar

Joined: Mon Apr 26, 2004 5:47 pm
Posts: 453
Location: Loughborough


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 22, 2006 8:31 pm 
Offline
NetHosted Staff
User avatar

Joined: Mon Mar 22, 2004 4:36 pm
Posts: 7373

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Earn £30 every time you refer someone to us!
| Follow us on Twitter:
| Members, tell us what of NetHosted!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 25, 2006 6:58 pm 
Offline
NetHosted Customer

Joined: Thu Jan 20, 2005 8:11 am
Posts: 128
Location: Loughborough, Leics
i have created a site map and submitted to google many months ago using.
http://www.google.com/webmasters/sitemaps/
My site has a lot of semi-unique content so it is easy to check, if the pages have been listed.The complicated urls with more than one '&' don't seem to have been indexed.

There are three varibles in my Encyclopedia (Genus, Variety & Cultivar)
The last two do not always appear, so I will sometimes get two slashes together //. Anyone know if this will cause a problem?
http://www.cgf.net/test/plants/GALIUM/ODORATUM//
http://www.cgf.net/test/plants/ILEX/AQU ... 0MILKBOY'/
The problem that I'm having is after you go to say the link above and try getting another plant from the option box, you end up with a horrible mess, which doesn't work proper - plants.php isn't mentioned in my webpage code, but is coming from the mod_rewrite somehow. if that makes sense!
The relevant section from the htaccess file is
RewriteRule ^plants/([A-Z]*)/([A-Z]*)/([A-Z]*) plants.php?genus=$1&variety=$2&cultivar=$3 [L,NC]

_________________
Kev Maggs
Part-time webdesigner - www.cynara.co.uk


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 25, 2006 7:24 pm 
Offline
NetHosted Staff
User avatar

Joined: Mon Mar 22, 2004 4:36 pm
Posts: 7373

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Earn £30 every time you refer someone to us!
| Follow us on Twitter:
| Members, tell us what of NetHosted!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 25, 2006 8:18 pm 
Offline
NetHosted Customer

Joined: Thu Jan 20, 2005 8:11 am
Posts: 128
Location: Loughborough, Leics

_________________
Kev Maggs
Part-time webdesigner - www.cynara.co.uk


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 25, 2006 8:31 pm 
Offline
NetHosted Staff
User avatar

Joined: Mon Mar 22, 2004 4:36 pm
Posts: 7373

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Earn £30 every time you refer someone to us!
| Follow us on Twitter:
| Members, tell us what of NetHosted!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 26, 2006 5:03 pm 
Offline
Community Liason
User avatar

Joined: Mon Apr 26, 2004 5:47 pm
Posts: 453
Location: Loughborough


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 211 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: