Advertisement
yamcsha

htaccess - rewrite

Apr 12th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. # .htaccess file in root directory
  2. <IfModule mod_rewrite.c>
  3.     RewriteEngine on
  4.     RewriteRule    ^$    public/    [L]
  5.     RewriteRule    (.*) public/$1    [L]
  6.  </IfModule>
  7.  
  8. # .htaccess file in /public directory
  9. <IfModule mod_rewrite.c>
  10.     RewriteEngine On
  11.     RewriteCond %{REQUEST_FILENAME} !-f
  12.     RewriteCond %{REQUEST_FILENAME} !-d
  13.     RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
  14. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement