cd
to website directory- Set file permissions to 644:
find . -type f -exec chmod 644 {} \;
- Set directory permissions to 755:
find . -type d -exec chmod 755 {} \;
- Change wp-config.php permissions to 660:
chmod 660 wp-config.php
This file contains 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
<?php | |
/** | |
* Allow nested folder paths in WordPress Multisite with subdirectories | |
* Updated from http://maisonbisson.com/post/14052/wordpress-hacks-nested-paths-for-wpmu-blogs/ to account for latest WordPress code | |
* .htaccess rules also need to be changed to: | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] |
This file contains 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
<link rel="stylesheet" href="<?php | |
echo get_stylesheet_uri() | |
. '?t=' . filemtime( get_stylesheet_directory() . '/style.css' ); | |
?>" type="text/css" media="screen" /> |