php - Regular expression for a redirect -
i'm trying write regular expression redirect , not having luck. in example, old url might exist this:
example.com/about-us/default.asp
example.com/the-team/default.asp
which want redirect to:
example.com/about-us/
example.com/the-team/
i've come this:
/(\d*)/default.asp
which doesn't work...
i've tried this:
/(\d*)/default\.asp
as thought there might problem not having escape char '.', still no luck. can see i'm doing wrong?
got working minitech pointed out:
/(.*)/default.asp$
worked treat! thanks
Comments
Post a Comment