I have an address which is /blog?url=article-1
Is there a way to just remove the ?url=
part and replace it with a forward slash?
So, in the end, the URL should look like /blog/article-1
I have tried many htaccess routes and none seem to work.
I am using Windows and I am building a simple blog.
The URL works and everything but I just need it to look like /blog/article-1
instead of /blog?url=article-1
.
What I have mainly tried when searching on Stack Overflow is this code:
RewriteRule ^edit/id/([0-9]+)/?$ edit.php?id=$1 [NC,QSA,L]
Changed the values in it with no luck, what would I change the above code to? Or is the above code entirely wrong for what I need?