A
A
Artyom2014-08-15 10:44:15
Search Engine Optimization
Artyom, 2014-08-15 10:44:15

How to find the last slash in htaccess?

Can you please tell me how can I find the last slash in htaccess with a regex?
i.e. there is a link
www.site.ru/category/subcategory/product
how can I get /product from this link?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2014-08-15
@artem328

/(\/[az])$/i

D
Dima Barsukov, 2014-08-15
@mrsombre

/[^/]+$

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question