Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 22nd, 2012  |  syntax: None  |  size: 1.29 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. DirectoryIndex index.php
  2.  
  3. # remove the next 3 lines if you see a 500 server error
  4. php_flag register_globals off
  5. php_flag magic_quotes_gpc off
  6. php_value display_errors 0
  7.  
  8. FileETag none
  9. ServerSignature Off
  10.  
  11. Options All -Indexes
  12. <IfModule mod_rewrite.c>
  13. RewriteEngine On
  14.  
  15. RewriteRule ^sitemap.xml$ /sitemap.php$1 [L]
  16. RewriteRule ^home$ home.php$1 [L]
  17. RewriteRule ^users/(.*)$ profile.php?u=$1 [L]
  18. RewriteRule ^venue/(.*)$ venue.php?url=$1 [L]
  19. RewriteRule ^checkin$ checkin.php$1 [L]
  20. RewriteRule ^logout$ logout.php$1 [L]
  21.  
  22. RewriteRule ^claim/(.*)$ claim_venue.php?vid=$1 [L]
  23. RewriteRule ^admin/venue/(.*)$ admin_venue.php?vid=$1 [L]
  24.  
  25. RewriteRule ^contact$ contact.php$1 [L]
  26. RewriteRule ^FAQ$ faq.php$1 [L]
  27. RewriteRule ^about$ about.php$1 [L]
  28. RewriteRule ^search$ search.php$1 [L]
  29.  
  30. RewriteRule ^(.*)/checkins/(.*)$ checkin_view.php?u_name=$1&cid=$2 [L]
  31.  
  32. RewriteRule ^resources/site_list.json$ site_list.php$1 [L]
  33. RewriteRule ^thanks$ thanks.php$1 [L]
  34. RewriteRule ^resources/logged_status$ logged_status.php$1 [L]
  35. RewriteRule ^twitter/auth$ twitter_auth.php$1 [L]
  36. RewriteRule ^twitter/success$ twitter_success.php$1 [L]
  37. RewriteRule ^shorten/(.*)$ shorten.php?longurl=$1 [L]  
  38. RewriteRule ^([0-9a-zA-Z]{1,6})$ venue.php?url=$1 [L]  
  39. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  40. RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  41. </IfModule>