Advertisement
cesarnascimento

Untitled

Sep 17th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. ### BEGIN - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ###
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine on
  4.  
  5. # RewriteBase is set to "/" so rules do not need updating if the
  6. # installation directory is relocated.  It is imperative that
  7. # there is also a RewriteCond rule later that can effectively get
  8. # the actual value by comparison against the request URI.
  9. #
  10. # If there are _any_ other RewriteBase directives in this file,
  11. # the last entry will take precedence!
  12. RewriteBase /
  13.  
  14. # Redirect directories to an address with slash
  15. RewriteCond %{REQUEST_FILENAME} -d
  16. RewriteRule ^(.+[^/])$  $1/ [R]
  17.  
  18. # Send all remaining (routable paths) through index.php
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21. # Determine and use the actual base
  22. RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
  23. RewriteRule ^.*$ %2index.php [QSA,L]
  24. </IfModule>
  25. ### END - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement