wordpress
WordPress 主题如何设置多语言支持: PoEdit #
http://www.yaohaixiao.com/wordpress/wordpress-theme-is-how-to-set-up-a-multi-language-support/
移动网站 / 修改网站路径 / 去掉URL路径中多余层级的目录 #
eg: http://xxx.local/wordpress/mywebsite/index.php => http://xxx.local/
Step 1. setup vhost for apache, setup system host file for local domain. #
NameVirtualHost *:80
<VirtualHost *:80> ServerName xxx.local DocumentRoot "c:\path\to\wordpress\mywebsitefiles" <Directory "c:\path\to\wordpress\mywebsitefiles"> DirectoryIndex index.php index2.php index.html AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
Step 2. modify db #
After reading http://codex.wordpress.org/Moving_WordPress , I found only siteurl in the wp_options table.
Step 3. modify web source code #
Naturligtvis måste vi andra variabler i webb sidor (source code) och konfiguration, så webb sidan kan fungera bra. Kanske finns det några “array offset” som bero på webb URL, som måste andras också.
Change table-prefix after installation #
http://tdot-blog.com/wordpress/6-simple-steps-to-change-your-table-prefix-in-wordpress
Rewrite #
vhost 会被覆盖, 需要使用wp目录下的 .htaccess, 但是这个文件会因为用户的设置,例如permalink的设置,被wp更改,则用户的手动设置会被删除。或者写到对应插件的init里.
http://www.wpbeginner.com/wp-tutorials/how-to-fix-yoasts-wordpress-seo-sitemap-404-error/
Delete Login Entrance, Changing “Meta” #
/wp-includes/default-widgets.php => class WP_Widget_Meta
Redirection #
404 转 301我用的插件:
“404 to start”, “404 Redirected”。
ref: