Mapping Subdomains in WordPress to give the appearance of a localised site, best approach?

Sort of a vague question, but I think I understand what you’re getting at. You’d need to use a WordPress Multisite installation, which will effectively create localized blogs on a subdomain (brisbane.example.com, perth.example.com). Using a single site WordPress installation to do this is possible, using CNAME mapping on the domain, however this would not suit … Read more

Prevent WordPress from interpreting a subfolder?

To exclude a directory and all virtual requests to it, extend the regular rules: # WordPress # Images, Stylesheets etc. don’t need a HTML 404 RewriteCond %{REQUEST_URI} !.+\.\w{2,4}$ # Existing file RewriteCond %{REQUEST_FILENAME} !-f # Existing directory RewriteCond %{REQUEST_FILENAME} !-d # Symbolic link RewriteCond %{REQUEST_FILENAME} !-l # Do not touch the directory ‘clients’ RewriteCond %{REQUEST_URI} … 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

Making 2 WordPress sites mutually searchable and more

The online resources I’ve read suggest this will allow me to use different plugins and themes on the two sites whilst allowing a search from either site to bring up results from both sites. Is this correct? Yes, is correct. In multisite environment you can install different plugins/themes for different sites. Once the database is … Read more

How to use my style.css file outside of wordpress subdomain?

If you’re using an absolute reference like that, you’d want to include the full file path, like http://diginomics.com/wp-content/themes/THEMENAME/css/style.css I believe any time you call the functions like get_stylesheet_directory() or get_stylesheet_directory_uri() it will return the path for the current theme. Just keep in mind that all themes need a style.css file. I would have posted this … Read more

Move from Subdomain to Root

The first part of your question hangs more on how much control over web server configuration you have. If you can point new domain at the same location in filesystem — then no, you won’t have to move a thing. Otherwise you do indeed need to move files. On other hand it’s not that complicated … Read more

WordPress Multisite Wildcard Subdomains on Plesk

You have forwarded the wildcards to the wrong subdirectory this is why you are seeing the Plesk default page. The wildcard subdomain rule should point to the folder of your wordpress multisite installation. WordPress reads the URL from the request and then internally routes to the correct site. If it’s not pointed to right place … Read more

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