Htaccess File


<IfModule mod_rewrite.c>

    # Make sure directory listing is disabled
  Options +FollowSymLinks -Indexes
  RewriteEngine on

  # NOTICE: If you get a 404 play with combinations of the following commented out lines
  #AllowOverride All
  #RewriteBase /wherever/pyro/is

  # Restrict your site to only one domain
  #RewriteCond %{HTTP_HOST} !^$
  #RewriteRule ^(.*)$$1 [L]

  # Keep people out of codeigniter directory and Git/Mercurial data
  RedirectMatch 403 ^/(system/pyrocms/cache|system/codeigniter|.git|.hg).*$

  # Send request via index.php (again, not if its a real file or folder)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  <IfModule mod_php5.c>
    RewriteRule ^(.*)$ index.php/$1 [L]

  <IfModule !mod_php5.c>
    RewriteRule ^(.*)$ index.php?/$1 [L]

Exit mobile version