I have a site with some pages like
url.com/target/{dir_id}/{page_id}.php
I would like to call/link this pages with something like
url.com/target/blablab-something-we-dont-care/{dir_id}/{page_id}
and get again
url.com/target/{dir_id}/{page_id}.php
The regex in php is
target/(.*)/(\d+)/(\d+)
url.com/target/blablab-something-we-dontcare/17/298
=>
url.com/target/$2/$3.php
Any idea how to bring this in my .htaccess, please?
url.com/target/{dir_id}/{page_id}.php
I would like to call/link this pages with something like
url.com/target/blablab-something-we-dont-care/{dir_id}/{page_id}
and get again
url.com/target/{dir_id}/{page_id}.php
The regex in php is
target/(.*)/(\d+)/(\d+)
url.com/target/blablab-something-we-dontcare/17/298
=>
url.com/target/$2/$3.php
Any idea how to bring this in my .htaccess, please?
Last edited: