Can i rewrite the urls in .htaccess like below example and remove a dynamic part from url?
https://example.com/abc/123/efg
=> https://example.com/abc/efg
while 123
is dynamic.
I just use RedirectMatch directive like this:
RedirectMatch 301 /abc/([0-9]+)/(.*) /abc/$2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.