Advertisement
anticims19

htaccess

Feb 23rd, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. # !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
  4. # slashes.
  5. # If your page resides at
  6. # http://www.example.com/mypage/test1
  7. # then use
  8. # RewriteBase /mypage/test1/
  9. RewriteBase /
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteRule ^(.*)$ index.php/$1 [L]
  13. </IfModule>
  14.  
  15. <IfModule !mod_rewrite.c>
  16. # If we don't have mod_rewrite installed, all 404's
  17. # can be sent to index.php, and everything works as normal.
  18. # Submitted by: ElliotHaughin
  19.  
  20. ErrorDocument 404 /index.php
  21. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement