I am creating a website in CodeIgniter,
In blog section the blog link is
http://www.example.com/blogs?id=1
But i want links like
http://www.example.com/something-something
That i have save in database
Please help..
I am creating a website in CodeIgniter,
In blog section the blog link is
http://www.example.com/blogs?id=1
But i want links like
http://www.example.com/something-something
That i have save in database
Please help..
2
Answers
You can use codeigniter
url_title
method to do sofor more : https://www.codeigniter.com/user_guide/helpers/url_helper.html#url_title
You should do following steps for making SEO friendly Blogs links in CodeIgniter
Add following code in
/application/config/routes.php
Create new controller called
Blogs.php
in/application/controllers
then, change your URL’s in view files.
-OR-