+ 2

How to remove id from static urls

I'v made seo friendly url with .htaccess for example: siteName.com/posts/2 I want to change this url to siteName.com/posts/post-title-name. Who knows how it can be done P.S: get request "id" must be included Intitial url was : siteName.com/posts.php?id=1

21st Mar 2019, 11:31 AM
Fury
1 Réponse
+ 3
RewriteCond %{QUERY_STRING} ^task=view$ [NC] RewriteRule ^(.*)$ $1? [R=301,L] https://stackoverflow.com/questions/21523311/removing-get-parameter-in-htaccess
21st Mar 2019, 12:49 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar