Wordpress: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
tar -zxvf latest.tar.gz | tar -zxvf latest.tar.gz | ||
</syntaxhighlight> | |||
===Apache Setup=== | |||
# Setup apache to access to that directory | |||
# | |||
===Special Setup for Multiple Site=== | |||
# Add the following line into wp-config.php | |||
<syntaxhighlight lang="bash"> | |||
/* Multisite */ | |||
define('WP_ALLOW_MULTISITE', true); | |||
define('MULTISITE', true); | |||
define('SUBDOMAIN_INSTALL', true); | |||
define('DOMAIN_CURRENT_SITE', 'segolenegras.com'); | |||
define('PATH_CURRENT_SITE', '/'); | |||
define('SITE_ID_CURRENT_SITE', 1); | |||
define('BLOG_ID_CURRENT_SITE', 1); | |||
define('ADMIN_COOKIE_PATH', '/'); | |||
define('COOKIE_DOMAIN', ''); | |||
define('COOKIEPATH', ''); | |||
define('SITECOOKIEPATH', ''); | |||
</syntaxhighlight> | |||
# Inusre to have the special instruction configured in Apache or .htaccess | |||
<syntaxhighlight lang="bash"> | |||
# BEGIN WordPress | |||
<IfModule mod_rewrite.c> | |||
RewriteEngine On | |||
RewriteBase / | |||
RewriteRule ^index\.php$ - [L] | |||
# add a trailing slash to /wp-admin | |||
RewriteRule ^wp-admin$ wp-admin/ [R=301,L] | |||
RewriteCond %{REQUEST_FILENAME} -f [OR] | |||
RewriteCond %{REQUEST_FILENAME} -d | |||
RewriteRule ^ - [L] | |||
RewriteRule ^(wp-(content|admin|includes).*) $1 [L] | |||
RewriteRule ^(.*\.php)$ $1 [L] | |||
RewriteRule . index.php [L] | |||
</IfModule> | |||
# END WordPress | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 00:43, 26 March 2017
Installation
Download
- Download the file from: WordPress
- Uncompress latest file
tar -zxvf latest.tar.gz
Apache Setup
- Setup apache to access to that directory
Special Setup for Multiple Site
- Add the following line into wp-config.php
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'segolenegras.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
- Inusre to have the special instruction configured in Apache or .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress
Plugin
Social
SEO
- Google Analytics Dashboard for WP
- WordPress SEO
- WP-Piwik
Security
- Contact Form Maker
- Limit Attempts
- Wordfence Security
- WP Security Audit Log
Locallization
- mqTranslate
Editor
- TinyMCE Advanced
Contact
- Contact Form Maker