PDA

View Full Version : Dynamic URLS - Question For Earl/Other Experts


sess4561
4th June 2010, 13:35
Hi guys

I am currently setting up a dynamic site for a client, and want to optimise it as best possible for the search engines.

If I have a dynamic URL such as this below:-

my-dummy-car-site.co.uk/uk/tyne-and-wear/towns.php?town=gateshead&&linkphrase=fast%20cars

This page would be about fast cars in gateshead, tyne and wear.

How would I go about making that link look more attractive to the search engines?

Obviously I'd like it to look something like below:-

my-dummy-car-site.co.uk/uk/tyne-and-wear/gateshead/fast-cars.html

I have heard of using mod rewrite but need some more advice on it please from the experts (Earl?)

Cheers
Dave

OldWelshGuy
4th June 2010, 14:04
Are you asking for an example of the actual coding needed?

sess4561
4th June 2010, 14:08
yes please that would be great if you could give an example of the coding.

i have look at a few tutorials but found there are different ways of doing things. just want the best possible option for SEO.

Thanks
Dave

Ali-v-8
4th June 2010, 14:15
Surely it would depend on the type of website.
If for example its joomla or a data base driven website

sess4561
4th June 2010, 14:18
its database driven. mysql/php

OldWelshGuy
4th June 2010, 14:20
is this a bought/free script, or has it been coded from the ground up?

Ali-v-8
4th June 2010, 14:20
sorry but its complicated.
Dynamic websites tend to mess up bad when SEO is implemented.
If the website has a mod added before its populated then that should be fine.
If you are modding a live website then take care to reload the internal linking.

harryboon
4th June 2010, 14:21
its database driven. mysql/php

I am not a coder but I know doing it in php is easy, all my site's which are in php have dynamic URLS - But sorry no idea how to do it :| I should learn

GNU
4th June 2010, 14:23
Surely it would depend on the type of website.
If for example its joomla or a data base driven website

Yup usually you have to modify both the application and .htaccess.

There are plugins for most OS apps that do not do it out of the box.

If you are going to build a custom site I would suggest you look at using an MVC framework, most of which will handle this for you.

Mystro
4th June 2010, 14:24
I just got my guy to do just that for me, the problem you are going to have is its not going to be easy to implement for any ol site

PM me for his detals and you can speak with him and ask him but my example URL's are

http://www.economyleasinguk.co.uk/
http://www.economyleasinguk.co.uk/local-car-leasing
http://www.economyleasinguk.co.uk/car-leasing-in-bristol

I could have gone deeper into actual towns in the county's but i did not want to do that even though it can easily be done and would have created 28,000 extra pages



Good luck

Paul

GNU
4th June 2010, 14:26
useful link here:

http://semlabs.co.uk/journal/mod_rewrite-quick-reference-and-cheat-sheet