icefusion

Novo htaccess - Aplicação

Nov 6th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. # Turn on rewrites.
  2. RewriteEngine on
  3.  
  4. # Only apply to URLs on this domain
  5. RewriteCond %{HTTP_HOST} ^(admin.)?geralk2.com.br$
  6.  
  7. # Only apply to URLs that aren't already under folder.
  8. RewriteCond %{REQUEST_URI} !^/public/
  9.  
  10. # Don't apply to URLs that go to existing files or folders.
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13.  
  14. # Rewrite all those to insert /folder.
  15. RewriteRule ^(.*)$ /public/$1
  16.  
  17. # Also redirect the root folder.
  18. RewriteCond %{HTTP_HOST} ^(admin.)?geralk2.com.br$
  19. RewriteRule ^(/)?$ public/index.php [L]
Advertisement
Add Comment
Please, Sign In to add comment