Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. RewriteOptions inherit
  2. # Turn on URL rewriting
  3. RewriteEngine On
  4.  
  5. RewriteBase //
  6.  
  7. # Protect hidden files from being viewed
  8. <Files .*>
  9. Order Deny,Allow
  10. Deny From All
  11. </Files>
  12.  
  13. # Protect application and system files from being viewed
  14. RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
  15.  
  16. # List of files in subdirectories will not be displayed in the browser
  17. Options -Indexes
  18.  
  19. # Allow any files or directories that exist to be displayed directly
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22.  
  23. AddDefaultCharset utf-8
  24. AddCharset UTF-8 .htm .html .txt
  25. AddType "text/html; charset=UTF-8" .htm .html .txt
  26. AddType "text/css; charset=UTF-8" .css
  27. AddType "text/javascript; charset=UTF-8" .js
  28.  
  29. # Rewrite all other URLs to index.php/URL
  30. RewriteRule .* index.php/$0 [PT]
  31.  
  32. RewriteCond %{HTTP_HOST} ^warfaregaming\.net$ [OR]
  33. RewriteCond %{HTTP_HOST} ^www\.warfaregaming\.net$
  34. RewriteRule ^/?$ "http\:\/\/warfaregaming\.net\/i\/" [R=301,L]
  35.  
  36. RewriteCond %{HTTP_HOST} ^nandhistudios\.net$ [OR]
  37. RewriteCond %{HTTP_HOST} ^www\.nandhistudios\.net$
  38. RewriteRule ^/?$ "http\:\/\/nandhistudios\.net\/s\/" [R=301,L]
  39.  
  40. RewriteCond %{HTTP_HOST} ^nandhi\.tv$ [OR]
  41. RewriteCond %{HTTP_HOST} ^www\.nandhi\.tv$
  42. RewriteRule ^/?$ "http\:\/\/nandhi\.tv\/h\/" [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement