Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1.  
  2.  
  3. # $Id: .htaccess 7539 2010-10-04 04:41:38Z john $
  4.  
  5.  
  6.  
  7. # TrioxX edit - Start
  8.  
  9. #php_value display_errors 1
  10.  
  11. # TrioxX edit - End
  12.  
  13.  
  14.  
  15. <IfModule mod_rewrite.c>
  16.  
  17. Options +FollowSymLinks
  18.  
  19. RewriteEngine On
  20.  
  21.  
  22.  
  23. # Get rid of index.php
  24.  
  25. RewriteCond %{REQUEST_URI} /index\.php
  26.  
  27. RewriteRule (.*) index.php?rewrite=2 [L,QSA]
  28.  
  29.  
  30.  
  31. # Rewrite all directory-looking urls
  32.  
  33. RewriteCond %{REQUEST_URI} /$
  34.  
  35. RewriteRule (.*) index.php?rewrite=1 [L,QSA]
  36.  
  37.  
  38.  
  39. # Try to route missing files
  40.  
  41. RewriteCond %{REQUEST_FILENAME} !-f
  42.  
  43. RewriteCond %{REQUEST_FILENAME} public\/ [OR]
  44.  
  45. RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$
  46.  
  47. RewriteRule . - [L]
  48.  
  49.  
  50.  
  51. # If the file doesn't exist, rewrite to index
  52.  
  53. RewriteCond %{REQUEST_FILENAME} !-f
  54.  
  55. RewriteCond %{REQUEST_FILENAME} !-d
  56.  
  57. RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]
  58.  
  59.  
  60.  
  61. </IfModule>
  62.  
  63.  
  64.  
  65. # sends requests /index.php/path/to/module/ to "index.php"
  66.  
  67. # AcceptPathInfo On
  68.  
  69.  
  70.  
  71. # @todo This may not be effective in some cases
  72.  
  73. FileETag Size
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement