CodeIgniter Forums
Suggestion For SEO Friendly URL - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Suggestion For SEO Friendly URL (/showthread.php?tid=63082)



Suggestion For SEO Friendly URL - codeigniter_ - 09-24-2015

Hello,

I am displaying city list and details along with image gallery of that city on our one of the website which is built in the Codeigniter.

I want to create an SEO friendly URL for the city details page and city album page.

Currently both the pages URL's are:

Rio De Janeiro City Details Page Link:
http://www.xyz.com/city/38/RioDeJaneiro

Rio De Janeiro City Album Page Link:
http://www.xyz.com/cityalbum/38/RioDeJaneiro

We had also come up with a few solutions as follows:

Rio De Janeiro City Details Page Link:
"Provide Link"

Rio De Janeiro City Album Page Link:
"Provide Link"

Please suggest if the above mentioned URLs are good for SEO purpose or we need modification in it.

If we need to modify it then please suggest what sort of a modification should be done to make these URLs absolutely SEO Friendly.

Eagerly waiting for your answers.

Thanks.


RE: Suggestion For SEO Friendly URL - Diederik - 09-24-2015

For good SEO urls you need to remove all unnecessary stuff so the URL itself is as descriptive as it can be and put the most important parts at the front end of the url. I suspect that the 38 in your URL structure represents the city ID for Rio, if so, you should get rid of it and use the city name itself as a parameter.

I would suggest a structure where your first URL parameter is the name of the city, followed by the type of information you want to show about that city on that page.

And use a dash to separate words in a URL, don't use CamelCase.

http://www.xyz.com/city/rio-de-janeiro
http://www.xyz.com/city/rio-de-janeiro/album (or http://www.xyz.com/city/rio-de-janeiro/photo-album)

If you can you should get rid of the /city/ part as well but I dont know if that is feasible for you app.
http://www.xyz.com/rio-de-janeiro
http://www.xyz.com/rio-de-janeiro/album


RE: Suggestion For SEO Friendly URL - Martin7483 - 09-25-2015

(09-24-2015, 12:39 PM)Diederik Wrote: For good SEO urls you need to remove all unnecessary stuff so the URL itself is as descriptive as it can be and put the most important parts at the front end of the url. I suspect that the 38 in your URL structure represents the city ID for Rio, if so, you should get rid of it and use the city name itself as a parameter.

I would suggest a structure where your first URL parameter is the name of the city, followed by the type of information you want to show about that city on that page.

And use a dash to separate words in a URL, don't use CamelCase.

http://www.xyz.com/city/rio-de-janeiro
http://www.xyz.com/city/rio-de-janeiro/album (or http://www.xyz.com/city/rio-de-janeiro/photo-album)

If you can you should get rid of the /city/ part as well but I dont know if that is feasible for you app.
http://www.xyz.com/rio-de-janeiro
http://www.xyz.com/rio-de-janeiro/album

Also use a title to slug function when saving data and store the slug in your DB table. Your url segment rio-de-janeiro will then match the slug in the DB table