I am in the process of developing a blog with EE2, and I was wondering how best to get this type of URL for single entries: http://site-name.com/category-name/this-is-a-post
I’ve been doing a lot of searching/reading on this topic and have been able to remove index.php and template_group. However, removing the template name (“entry” in my case) and injecting category names into the URL has been eluding me. This is what I have so far:
Single Entry (original)
http://site-name.com/index.php/site/entry/this-is-a-post
Single Entry (current)
http://site-name.com/entry/this-is-a-post
Single Entry (ideal)
http://site-name.com/category-name/this-is-a-post
So I guess I have two separate problems: (1) I would like to remove the template name for single entries and (2) add the category of the entry into its URL. Thanks in advance for any help.
Edit: These links have to be able to work both from http://site-name.com and http://site-name.com/category-name.