Hi I am trying to rewrite URL but can make it happen:
site.com/1-2-id
to
site.com/1-2/id
RewriteRule ^1-2\-([^./]+)$ 1-2/$1 [L,QSA,NC]
What I am missing here.
Thanks
Hi I am trying to rewrite URL but can make it happen:
site.com/1-2-id
to
site.com/1-2/id
RewriteRule ^1-2\-([^./]+)$ 1-2/$1 [L,QSA,NC]
What I am missing here.
Thanks
RewriteRule ^site\.com/1-2-id$ /site.com/1-2/id?&%{QUERY_STRING}
or this
RedirectMatch 301 site.com/1-2-id(.*) site.com/1-2/id/$1
not tested
here is a tool to use https://www.htaccessredirect.net/
RewriteRule ^1-2-id$ /1-2/id?&%{QUERY_STRING}
i found this and played around a bit with the best answer
https://stackoverflow.com/questions/3501813/url-rewriting-on-localhost-apache-php
not tested
Thanks buddy I can't make this work on localhost but it's cool case it works on live server what really matters.
Thanks for your time and support.