apache_conf wordpress-安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf wordpress-安装相关的知识,希望对你有一定的参考价值。
# user group
sudo usermod -a -G www-data your_user
# assume inside web root
sudo chmod -vR g+rw /var/www/example.com
chown www-data:www-data -R *;
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
# for wordpress
chmod 644 ~/public_html/.htaccess
chmod 640 php.ini
chmod 755 ~/public_html
mkdir wp-content/cache
chmod 777 wp-content/cache
chmod 777 wp-content/w3tc-config
rm -rf wp-content/cache/*
rm -rf wp-content/cache/config
rm -rf wp-content/cache/tmp
rm -rf wp-content/cache/object
rm -rf wp-content/cache/db
rm -rf wp-content/cache/page_enhanced
User-agent: *
Disallow: /wp-admin/
Disallow: /trackback/
Disallow: /wp-content/
Disallow: /wp-includes/
Disallow: /xmlrpc.php
Disallow: /feed/
Disallow: /mint/
Disallow: /labs/
Disallow: /*/wp-*
Disallow: /*/feed/*
Disallow: /*/*?s=*
Disallow: /*/*.js$
Disallow: /*/*.inc$
Disallow: /transfer/
Disallow: /*/cgi-bin/*
Disallow: /*/blackhole/*
Disallow: /*/trackback/*
Disallow: /*/xmlrpc.php
Allow: /*/20*/wp-*
Allow: /press/feed/$
Allow: /press/tag/feed/$
Allow: /*/wp-content/online/*
Sitemap: http://example.com/sitemap.xml
User-agent: ia_archiver
Disallow: /
[tool]
all-in-one-wp-migration
duplicator
duplicate-post
no-category-base-wpml
polylang
mailchimp-for-wp
feedburner-email-subscription
email-subscribers
[SEO]
redirection
wordpress-seo
broken-link-checker
all-in-one-seo-pack
WP External Links
[Performance & profiling]
autoptimize
wp-optimize
above-the-fold-optimization
p3-profiler
plugin-load-filter
[security]
https://github.com/miziomon/awesome-wordpress#security-and-management
better-wp-security
wordfence
all-in-one-wp-security-and-firewall
wp-simple-firewall
[widgets]
category-posts
list-custom-taxonomy-widget
[tools]
ari-adminer
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
#protect
<Files wp-config.php>
Order Allow,Deny
Deny from all
</Files>
以上是关于apache_conf wordpress-安装的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf 这是我对WordPress的非常自以为是的安装脚本 - 你需要安装wp-cli才能工作 - 我把它包装成一个
apache_conf Wordpress .htaccess
apache_conf wordpress htaccess
apache_conf WordPress安全
apache_conf Wordpress htaccess
apache_conf Wordpress .htaccess