RishiShreshtha

Untitled

Apr 22nd, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2.  
  3. # use this base for lab
  4. # RewriteBase /goldoller.com/
  5.  
  6. # use this base for production
  7. RewriteBase /
  8.  
  9. # for ignoring the dev.goldoller.com domain
  10. RewriteCond %{SERVER_NAME} !^dev\.goldoller\.com
  11.  
  12. RewriteCond %{HTTP_HOST} ^goldoller.com [NC]
  13. RewriteRule ^(.*)$ http://www.goldoller.com/$1 [R=301,NC]
  14.  
  15. RewriteRule ^portal$ portal/ [R]
  16. RewriteRule ^portal/$ portal/index.php [L,QSA]
  17.  
  18. RewriteRule ^blog/(.*)$ blog/$1 [L,QSA]
  19.  
  20. RewriteRule ^([^\/\.]+)$ $1/ [R]
  21.  
  22. # properties
  23. RewriteRule ^our-properties/details/([^\/\.]*)/$ p.php?l=our-properties&pl=$1 [L,QSA]
  24. RewriteRule ^our-properties/page/([^\/\.]*)/$ p.php?l=our-properties&page=$1 [L,QSA]
  25.  
  26. # search
  27. RewriteRule ^search/([^\/\.]*)/$ p.php?l=search&search-text=$1 [L,QSA]
  28.  
  29. # tertiary
  30. RewriteRule ^([^\/\.]*)/([^\/\.]*)/([^\/\.]*)/$ p.php?pp=$1&p=$2&l=$3 [L,QSA]
  31. RewriteRule ^([^\/\.]*)/([^\/\.]*)/([^\/\.]*)/\#([^\/\.]*)$ p.php?pp=$1&p=$2&l=$3\#$4 [L,QSA]
  32.  
  33. # secondary
  34. RewriteRule ^([^\/\.]*)/([^\/\.]*)/$ p.php?p=$1&l=$2 [L,QSA]
  35. RewriteRule ^([^\/\.]*)/([^\/\.]*)/\#([^\/\.]*)$ p.php?p=$1&l=$2\#$3 [L,QSA]
  36.  
  37. # primary
  38. RewriteRule ^([^\/\.]*)/$ p.php?l=$1 [L,QSA]
  39. RewriteRule ^([^\/\.]*)/\#([^\/\.]*)$ p.php?l=$1\#$2 [L,QSA]
Advertisement
Add Comment
Please, Sign In to add comment