This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| update_option( 'siteurl', 'http://your-site.com' ); | |
| update_option( 'home', 'http://your-site.com' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ** MySQL settings - You can get this info from your web host ** // | |
| /** The name of the database for WordPress */ | |
| define('DB_NAME', 'database_name_here'); | |
| /** MySQL database username */ | |
| define('DB_USER', 'username_here'); | |
| /** MySQL database password */ | |
| define('DB_PASSWORD', 'password_here'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} | |
| !^http://(www\.)?your-site.com/.*$ [NC] RewriteRule \.(gif|jpg)$ | |
| http://www.your-site.com/hotlink.gif [R,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SSLOptions +StrictRequire | |
| SSLRequireSSL | |
| SSLRequire %{HTTP_HOST} eq "www.you-site.com" | |
| ErrorDocument 403 https://www.your-site.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteCond %{QUERY_STRING} author=d | |
| RewriteRule ^ /? [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^wp-admin/includes/ - [F,L] | |
| RewriteRule !^wp-includes/ - [S=3] | |
| RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] | |
| RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] | |
| RewriteRule ^wp-includes/theme-compat/ - [F,L] | |
| </IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options +FollowSymLinks | |
| RewriteEngine On | |
| RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR] | |
| RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR] | |
| RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2}) | |
| RewriteRule ^(.*)$ index.php [F,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Directory "/var/www/wp-content/uploads/"> | |
| <Files "*.php"> | |
| Order Deny,Allow | |
| Deny from All | |
| </Files> | |
| </Directory> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteCond %{REQUEST_URI} !^/wp-content/plugins/file/to/exclude\.php | |
| RewriteCond %{REQUEST_URI} !^/wp-content/plugins/directory/to/exclude/ | |
| RewriteRule wp-content/plugins/(.*\.php)$ - [R=404,L] | |
| RewriteCond %{REQUEST_URI} !^/wp-content/themes/file/to/exclude\.php | |
| RewriteCond %{REQUEST_URI} !^/wp-content/themes/directory/to/exclude/ | |
| RewriteRule wp-content/themes/(.*\.php)$ - [R=404,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options All -Indexes |