Welcome Guest, Not a member yet? Register   Sign In
SEO Urls
#1

[eluser]Matthew Lanham[/eluser]
One of the things im wondering is if you could change the urls so that they could be more SEO friendly, well i mean keyword rich i.e.

For an ecommerce site using standard CI you would use something like:

http://www.sitename.com/products/view/1

i would want

http://www.sitename.com/furniture/glass-...ith-wood/1

Clearly i dont want a view for each of the variations, and these would change rapidly so manually routing seems painful...

Any sugestions
#2

[eluser]Sarfaraz Momin[/eluser]
The information you have about CI URLs is not correct. Please check routes Routes for all the answers. Any further queries post here and we will be more than happy to help.

Good Day !!!
#3

[eluser]Matthew Lanham[/eluser]
Aha, clearly i missed that bit of the user guide....

So just to confirm, to accomplish this url:

http://www.sitename.com/furniture/glass-...ith-wood/1

i would need to change this slightly, as furniture will change so maybe:

http://www.sitename.com/catalogue/furnit...ith-wood/1

i would use a route like:

$route['catalogue/:any/:any/:num']

or could i use:

$route['catalogue/:any']
#4

[eluser]Nick Husher[/eluser]
Is there a compelling reason not to have a controller named catalogue with a function named furniture that takes two arguments?
#5

[eluser]Matthew Lanham[/eluser]
Because those categories will change alot. i.e. new ranges come in stock etc...needs to be as versatile as possible.....

Otherwise every time a customer added a new category if items i.e. electronics, i would need to program in a function.
#6

[eluser]Matthew Lanham[/eluser]
Using:

$route[’catalogue/:any’]

Works
#7

[eluser]champs[/eluser]
Your SEO approach will actually backfire if you get lazy and make duplicate content. If the same page is linked as both /catalogue/furniture/some-meaningless-text/1, and catalogue/furniture/1, you're splitting the page weight between two results.

Make sure you have a function that takes the item object/array as a parameter and turns it into a consistent path.
#8

[eluser]Matthew Lanham[/eluser]
Thanks for that yea, totally understand what you are saying, i will be creating a function as it will also strip out ilegal characters...

Plus i will probably be more specific with the routing to prevent this also...

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB