b2evolution PHP Cross Reference Blogging Systems

Source: /sample.htaccess - 53 lines - 1970 bytes - Summary - Text - Print

   1  # Apache configuration for b2evolution's base folder
   2  # Lines starting with # are comments.
   3  # Updated 2013-07-16
   4  
   5  # PHP / SECURITY:
   6  <IfModule mod_php5.c>
   7      # On some overly "secured" systems, the following may need to be added in each folder:
   8      # AddHandler application/x-httpd-php5 .php
   9      
  10      # The following will try to configure PHP in the way b2evolution would like it to be:
  11      php_flag register_globals Off
  12      php_flag display_errors On
  13      php_value error_reporting E_ALL
  14      
  15      # You may also need some of the following:
  16      # Increase memory limit
  17      # php_value memory_limit 256M
  18  </IfModule>
  19  
  20  # DISABLE LISTING FILES ON SERVER:
  21  # Don't show directory contents (not desirable, especially for media folders)
  22  Options -Indexes
  23  # Note: if you have access to the command line of your server, it would probably
  24  # be even better to type this:  a2dismod autoindex
  25  # (This disables the directory listing module completely)
  26  
  27  # DEFAULT DOCUMENT TO DISPLAY:
  28  # In case no specific file is requested, we want to fall back to index.php
  29  # In case some subdirectories are accessed, we want to display index.html
  30  <IfModule mod_dir.c>
  31      DirectoryIndex index.php index.html
  32  </IfModule>
  33  
  34  # CLEAN URLS:
  35  # The following will ensure you can pass extra params after the filename on the URL
  36  AcceptPathInfo    On
  37  
  38  # CATCH EVERYTHING INTO B2EVO: (even if no php file appears in the URL)
  39  # The following will allow you to have a blog running right off the site root,
  40  # using index.php as a stub but not showing it in the URLs.
  41  # This will add support for URLs like:  http://example.com/2006/08/29/post-title
  42  <IfModule mod_rewrite.c>
  43      RewriteEngine On
  44  
  45      # This line may be needed or not.
  46      # enabling this would prevent running in a subdir like /blog/index.php
  47      # RewriteBase /
  48  
  49      # Redirect any .htm .html or no-extension-file that's not an existing file or directory to index.php:
  50      RewriteCond %{REQUEST_FILENAME} !-d
  51      RewriteCond %{REQUEST_FILENAME} !-f
  52      RewriteRule ^[^.]+(\.(html|htm))?$ index.php [L]
  53  </IfModule>

title

Description

title

Description

title

Description

title

title

Body