.htaccess for Subdomain and Subfolder w/SSL

Typically if your subdomain’s root is the folder with WP installed, then just create a .htaccess file there. That always works for me. Example: public_html -> random etc.. mywpfolder (the wp folder) wp-admin wp-content etc.. .htaccess (create htaccess file here or simply copy/paste the primary one here) EDIT Do you have the other installs in … Read more

I have a question about the name of my blog [closed]

https://frufinurlig.wordpress.com/ shows the message that the name “is no longer available. The authors have deleted this site.” WordPress.com does not “recycle” their user name subdomains. You need to pick another account name when you sign up at https://wordpress.com/start/survey

Not being allowed to use some terms in Add New Site in WordPress

http://codex.wordpress.org/Create_A_Network#Permalinks /blog cannot be used as a new site name. It is relied on heavily by WP for the main site. Everything added to it automatically has /blog as part of the permalink from my understanding You can check out this discussion http://wordpress.org/support/topic/root-directory-blog-for-wordpress-30-main-multisite to see if it helps you out, gives some further options. The … Read more

In a subdomain network, what .htaccess settings can I use to have WP ignore requests to one subdomain?

I found this article: http://codex.wordpress.org/Configuring_Wildcard_Subdomains_for_multi_site_under_Plesk_Control_Panel I had used it originally when setting up the wildcard subdomains on my Plesk server. At first I didn’t need to worry about the webmail section, but now I do, and here’s what I did: $ cd /etc/apache2/conf.d $ mv zzz_horde_vhost.conf zz001_horde_vhost.conf $ /etc/init.d/apache2 restart This way, the Horde config … Read more

Redirect posts to sub domain except pages

I would do this per server configuration. Here is an example for the .htaccess: RewriteCond %{HTTP_HOST} !^blog\.example\.com$ RewriteRule (.*)\.html$ http://blog.example.com/$1.html [L,R=301] You could do this in a WordPress plugin too. Untested suggestion: add_action( ‘template_redirect’, ‘wpse_77279_redirect’ ); function wpse_77279_redirect() { if ( is_single() and ‘blog.example.com’ !== $_SERVER[‘HTTP_HOST’] and ‘post’ === get_post_type() ) { wp_redirect( ‘blog.example.com’ . … Read more

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