Skip to content

Latest commit

 

History

History
executable file
·
40 lines (27 loc) · 1.06 KB

README.md

File metadata and controls

executable file
·
40 lines (27 loc) · 1.06 KB

CECommunity

The central community project


IMPORTANT


The following settings are necessary in order project to work properly on the web server.

[Apache/Httpd configuration] - .htaccess

/etc/apache2/sites-enabled/000-default or /etc/httpd/conf/httpd.conf

    <Directory /var/www/cecommunity/>
      AllowOverride None
      php_flag display_errors on

      RewriteEngine On
      RewriteBase /cecommunity/
      RewriteRule ^index\.php$ - [L]

      # uploaded files
      RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

      # add a trailing slash to /wp-admin
      RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

      RewriteCond %{REQUEST_FILENAME} -f [OR]
      RewriteCond %{REQUEST_FILENAME} -d
      RewriteRule ^ - [L]
      RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
      RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
      RewriteRule . index.php [L]
    </Directory>