Welcome Guest, Not a member yet? Register   Sign In
yet another seo url question
#6

[eluser]StefanAlexandru[/eluser]
You are right boltsabre, I am little bit confused too about this topic.
So let's take the following example.
If I keep the url like this :
Code:
http://www.mydomain.com/controller/id/seo-title

if somebody changes the id segment, they will be redirected to the ad with that specific id and it will not care about the next uri segment.
I want to avoid somehow this situation.
In the following example :
Code:
http://www.mydomain.com/controller/function/seo-title-id
if I concatenate the title with the id, the users will not tend to change it(hope so).
My main issue is that I don't know how to read that id from PHP point of view, let's say that is lack of knowledge.
The only thing which I have in mind right now, is to store the title + id as a slug into the db. And instead of searching by id, to search for the all string, but wouldn't be that a problem for mysql performance ?

Conclusion :
For the first case if I can avoid the situation of changing the id, It would be great.
For the second case, I need way to read from db by getting only the id from url, or to store that "slug" into the DB.

What would you recommend ?


Thanks


Messages In This Thread
yet another seo url question - by El Forum - 07-27-2011, 01:18 AM
yet another seo url question - by El Forum - 07-27-2011, 02:15 AM
yet another seo url question - by El Forum - 07-27-2011, 02:36 AM
yet another seo url question - by El Forum - 07-27-2011, 03:21 AM
yet another seo url question - by El Forum - 07-27-2011, 06:11 AM
yet another seo url question - by El Forum - 07-27-2011, 06:36 AM
yet another seo url question - by El Forum - 07-27-2011, 07:23 AM
yet another seo url question - by El Forum - 07-27-2011, 07:32 AM
yet another seo url question - by El Forum - 07-27-2011, 07:32 AM
yet another seo url question - by El Forum - 07-27-2011, 07:42 AM
yet another seo url question - by El Forum - 07-27-2011, 07:48 AM
yet another seo url question - by El Forum - 07-27-2011, 08:01 AM
yet another seo url question - by El Forum - 07-27-2011, 08:15 AM
yet another seo url question - by El Forum - 07-27-2011, 08:19 AM
yet another seo url question - by El Forum - 07-27-2011, 08:25 AM
yet another seo url question - by El Forum - 07-27-2011, 08:50 AM
yet another seo url question - by El Forum - 07-27-2011, 04:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB