I have to write a Rewrite URL where I have to take substring of the page URL.
For example: Page URL we access https://www.example.com/test/url/need-substring-from-page-url123
Expected URL: https://www.example.com/test/url/url123
I have used below rewrite URL to get the substring
RewriteRule ^/test/url/(.*)-([[0-9]+])$ /test/url/$2 [PT,L]