Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteRule ^(.*)$ index.php [QSA,L]
  4.  
  5. RewriteEngine On
  6. RewriteBase /~test/
  7. RewriteCond %{REQUEST_FILENAME} !-f
  8. RewriteRule ^(.*)$ index.php [QSA,L]
  9.  
  10. # Determine the RewriteBase automatically and set it as environment variable.
  11. # If you are using Apache aliases to do mass virtual hosting or installed the
  12. # project in a subdirectory, the base path will be prepended to allow proper
  13. # resolution of the app.php file and to redirect to the correct URI. It will
  14. # work in environments without path prefix as well, providing a safe, one-size
  15. # fits all solution. But as you do not need it in this case, you can comment
  16. # the following 2 lines to eliminate the overhead.
  17. RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$
  18. RewriteRule ^(.*) - [E=BASE:%1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement