Correct folder permissions?

For starters, the WordPress Codex has a wealth of information on this very topic. For the sake of brevity that should take care of most of it; however, there are some relievant points that should be made: If you do not wish WordPress (essentially PHP) to have access to the file system with the exception … Read more

Subdomain redirects to subdirectory [closed]

RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?example\.com RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ([a-z0-9-]+)/? http://$1.example.com [R=301,NC,L] Replace both instances of “example.com” with your domain name. Taken from: htaccess Subdomain Redirect

uploading images to specified directories

This might be perfect solution for you: http://wordpress.org/plugins/custom-upload-dir/ With that plugin you can have upload folder structure as you wish: “uploads/$image_type./.$client./.$post_title./” or uploads/category/subcategory/post_title/ Or anything you like, you can combine post title, category, post author, post date and many more in your folder structure.

WordPress Multisite new sites in directory

Is it possible to make a wordpress multisite on domain.com and then every site that I make goes to domain.com/directory/newsite? no, this is not possible without some major code hacking as far as I can tell. I run a few multisites, and I have some local installations to play around and didn’t manage to find … Read more

How can I have nginx serve WordPress at /blog?

Here’s what mostly works: Have an nginx config file for the subdomain setup, and ensure that http://wordpress.example.com works. In the nginx default config, have a location block for /blog that proxies to the subdomain: location /blog { rewrite ^/blog(/?.*)$ $1 break; # remove “/blog” proxy_set_header Host wordpress.example.com; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://wordpress.example.com; } In wp-config.php, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)