Jump to content

Geographical Location for SEO


angelboy

Recommended Posts

First time post so be gentle please...

 

I'd seen a SEO web company that has search specific geographical related information on their site and I wondered how it's done.

 

Basically if you search for 'Name' then 'Location' their webpage reads the same name but the location you searched for. The URL was presented 'http://www.name.com/location.php?id=townname1' (then the various town names on the page depending on the town searched in.

 

I've seen this also with local phone numbers depending on where the searcher has searched.

 

When checked to see what google had indexed for the site it came up with 1270 pages all with the '/location.php?id=townname(etc)' URL. Does this mean the developer has created 1270 pages with the various town names or is it coded to insert only the town name searched for and if so how is then indexed with the search engines.

 

 

Link to comment
https://forums.phpfreaks.com/topic/187390-geographical-location-for-seo/
Share on other sites

The developer in that case has created a single page that use the $_GET variable id to fetch the information from another source (probably database). The individual 'towns' have then been indexed based on links to those specific URLs. Generally if a site such as this had been through an SEO process the link would actually be http://www.name.com/location/nottingham this page when requested from the server would then be passed through some sort of re-write module that would pass the URL to http://www.name.com/location.php?id=nottingham without the user knowing about it.

Sure, if your website is hosted on an Apache server then you can use the mod_rewrite module (generally installed by default). A quick search for .htaccess files (which is the filename of files you will generally put the RewriteRules in) and mod_rewrite you will find dozens of examples. There's also a board for mod_rewrite.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.