wp-config Tips and Tricks
-
Upload
josh-harrison -
Category
Technology
-
view
3.398 -
download
0
description
Transcript of wp-config Tips and Tricks
wp-config Tips and Tricks
What is it?
Configuration settings for your WordPress install
http://codex.wordpress.org/Editing_wp-config.php
Created either by using the installer
Or copy wp-config-sample.php
Database Settings
`
Table Prefix
The value placed in front of your database tables
You should change the default value pre-install
Allows multiple WP installs to a single DB
Security Keys
Ensure better cookie encryption
More Security
● Move wp-config.php out of the public html area
● Limit access to wp-config.php
URLs
Override the database value without changing it
Disables these fields in the wp-admin
Custom User Tables
Move wp-content
Other Tips
There's More?
● Language and Language Directory● Specify Cookie Domain● Override File Permissions● FTP / SSH Constants● Control Proxy Access
Developer
Testing
Using SVN
● Put your WordPress site in an SVN repository
● Automatically update the WordPress core files
● Automatically update themes and plugins
● Easily change versions for testing purposes
Using SVN
● Add the WordPress core as an svn:externalhtml/wp http://svn.automattic.com/wordpress/tags/2.8.4
● Copy the wp-content folder to public html● Add the wp-config file to public html
Using SVN
● Move wp-content in wp-config.php
● Change the site URLs in wp-config.php
Using SVN
● Modify your .htaccess file
● Update using svn up● Some plugins will break!
The Good And the Bad
● Good● Very customizable● Clean & concise
● Bad● Test first!● Test again!