Two identical wp-includes directories on server

This is not an “executable directory”. The x means something different for directories: The execute bit allows the affected user to enter the directory, and access files and directories inside Source Also the * doesn’t mean executable for directories hear as you might think if you’ve read that answer. Instead it is just a directory … Read more

Redirect main domain to subdirectory

From the two .htaccess files you posted I can’t see how your site is working at all?! If you request example.com/ (the document root) then the second rule in the root .htaccess file rewrites the request directly to /subdirectory/index.html (not index.php). If /subdirectory/index.html exists then the (non-WordPress) file is served, otherwise see #2 If you … Read more

Cant get wordpress to work on subdirectory

so @funkysoul was kind of right in terms on installing php. It was still a nightmare to setup nginx the way i needed it, my solution is: location / { try_files $uri $uri/ =404; } location ^~ /blog { alias /srv/www/wordpress; try_files $uri $uri/ /index.php?/$1 last; location ~ \.php$ { index index.php; include snippets/fastcgi-php.conf; fastcgi_param … Read more

Where to save common libraries?

I would recommend creating a plugin that holds all of your libraries. In the main plugin file, set a constant that defines the path to the plugin folder so you can easily include the files with your other plugins/themes.

Limit multisite/network site names to a property of the user

Looking at the source of wp-signup.php, it looks like your best bet might be to filter signup_blog_init (line 303 in v. 3.5.1): /* add_filter( ‘signup_blog_init’, ‘wpse103022_blog_name’ ); function wpse103022_blog_name( $blog_details ) { // Set $username to the user’s username $blog_details[‘blogname’] = $username; return $blog_details; } */ // see code below for replacement I’m not 100% … Read more

How can the temporary update directory be changed?

Impossible. The path is hard coded in many places (wp-admin/includes/update-core.php for example). I think this is worth a Trac ticket, if there isn’t one already. We can move the directories for plugins, themes and mu-plugins. This is the last thing why we need a wp-content directory at all. Update There was a short discussion in … Read more