This is is the current Blog Post Details URL.
site.com/blog/details/this-is-a-blog-post
But, I want my Blog Post URL like this.
site.com/blog/this-is-a-blog-post
I'm using CodeIgniter framework right now. Is there any way to do this in CI by anyway?
Thank you.
I solved the problem using Codeigniter Routes. I added a new route to application/config/routes.php $route['blog/(:any)'] = "blog/details/$1";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.