code_junkie

RegEx match replace help

Nov 13th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. RewriteRule ^(([A-Z][a-z]+-)*)([A-Z][a-z]+)(([A-Z][a-z]+)+)(.aspx)?$ /$1$3-$4 [N]
  2. RewriteRule ^([A-Z][a-z]+-)+[A-Z][a-z]+$ /$0.aspx [R=301]
  3.  
  4. ^/MountainCommunities/Lifestyles/5/([^/]+)/?([^/]+) /mountain-lifestyle/$1.aspx?$2 [I]
  5.  
  6. RewriteRule: ^/MountainCommunities/Lifestyles/d+/([A-Z][a-z]+)([A-Z][a-z]+)([A-Z][a-z]+).aspx$ /mountain-lifestyle/$1-$2-$3.aspx
Add Comment
Please, Sign In to add comment