Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. http://olddomain.com/
  2. http://olddomain.com/45
  3. http://olddomain.com/p/93
  4.  
  5. http://newdomain.com/
  6. http://newdomain.com/45
  7. http://newdomain.com/p/93
  8.  
  9. RewriteEngine on
  10.  
  11. RewriteCond %{REQUEST_URI}
  12. RewriteRule http://newdomain.com/
  13.  
  14. RewriteCond %{REQUEST_URI} (d+)/
  15. RewriteRule (d+)/ http://newdomain.com/$1
  16.  
  17. RewriteCond %{REQUEST_URI} p/(d+)/
  18. RewriteRule p/(d+)/ http://newdomain.com/p/$1
  19.  
  20. RewriteEngine On
  21. RewriteRule ^(.*) http://newdomain.com/$1 [R=301]
  22.  
  23. RewriteEngine On
  24. RewriteRule ^/(45|p/93|$)$ http://newdomain.com/$1 [R,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement