Forum Moderators: coopster
My questions are:
1. The url's his code produces are something like this:
www.mydomain.com/attractions/details.php?attractionID=43
I'd prefer them to be something like this:
www.mydomain.com/attractions/cityname_attraction_information.htm
with keywords in the url.
is it something that can be done easily enough before i go live with it?
i need to know if it can be done before i ask him
Many thanks,
[edited by: jatar_k at 5:35 pm (utc) on Oct. 13, 2003]
[edit reason] removed specifics [/edit]
AddHandler [httpd.apache.org]
mod_rewrite [httpd.apache.org]
To do this quickly though your contractor/freelancer would need to be familiar with one or other of the techniques.
yes it is possible. have a search in this forum (and google) for search engine friendly URLs. there are lots of posts about this sort of thing.
this article from sitepoint is an excellent starting point:
[sitepoint.com...]
good luck
That is better than the original /php?id=43 etc url but not perfect.
Another BIG problem i can see is, on my site at present i have reciprocal links boosting some pages, (mydom.com/desiredarea)and as my site is tourism related, it makes sense to have the file structure like it is now. e.g:
mydom.com/desiredarea, mydom/anotherarea,
So people know they can simply go to my domain, and if they want to learn about/see a place, they just type in that place name after the url and hit enter.
With what he is planning doing with the url's, there is no way i can keep the existing simple structure like this.
Is mod_rewrite the best way? and is it powerful enough to do this?(keep my existing file structure)
thanks for any help
All of this will marginally increase server load, of course, but as the saying goes, hardware is cheap and the URL is part of the user interface. Look at the microsoft site - you cane type in www.microsoft.com/product_name/ for any product they have and that takes you there. And trust me, it's not a static site!
It will also depend on how familiar your programmer is with mod rewrite.