Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ^ beginning of the text
  2. /? an optional slash
  3. / a slash
  4. ([^/d]+) a sequence of 1 or more characters not matching a slash and the letter "d" (and capture this text)
  5. /? an optional slash
  6. $ end of the text
  7.  
  8. ^ beginning of the text
  9. /order/ this literal text
  10. ([^0-9-]+) match all characters except digits and a dash, and capture this
  11. - a dash
  12. ([0-9]+) match all digits and capture this
  13. .php?service= match ".php?service="
  14. ([0-9]+) match all digits and capture this
  15.  
  16. /order/$1-$2/$3
  17.  
  18. RewriteRule ^/order/([^0-9-]+)-([0-9]+).php?service=([0-9]+)$ /order/$1-$2/$3 [L,QSA]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement