I’m trying to make my own CMS and at this moment I’m looking to get clean my URLs, but I can’t erase the first GET parameter and leave just the second.
The unique thing that I did was to remove the extension file name with another .htaccess
condition, but I can’t solve this problem.
An example:
www.mysite.com/posts?id=2&title=The%20PostTitle
To:
www.mysite.com/posts/The%20PostTitle
Can someone help me?
3
Answers
I found a video tutorial that can be useful to everyone who is trying to understand how to use .htaccess files. I hope it will be very helpful on your own projects. Semantic URL htaccess Tutorial SEO Friendly Clean Links
Thank you to everyone who tried to help me!
To the spanish speakers, you can read something about regular expresions (regex). This is the link: Reemplazar cadenas y caracteres de un string.
Try this
Try this. Its not tested.