Htaccess remove dates from root site but not from subdomain

I figured out my own answer, so am posting it here so if someone else runs into the same problem, they can see what I did. The issue for me was that the base WordPress redirect code: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} … Read more

Does htaccess password keep search engines out?

Not really a WP question, but I do this with dev sites. I don’t think I can give you an absolute answer as to search engines’ behavior, but speaking from experience, adding authentication like htpasswd retroactively would cause an eventual departure from search results. Adding auth proactively has produced effective results for me. The search … Read more

Steps for WordPress over SSL

It is not absolutely necessary to add anything to the config file. However it’s a good idea to do a test to look for any unsecured Http calls, such as stylesheets or Scripts. A good resource for this is https://www.whynopadlock.com/. The force SSL Setting can sometimes help with requests coming from plug-ins or anything you … Read more

.htaccess redirects for posts in new directory and new domain

You could use mod_rewrite with some regex like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/old/(.*)/?$ http://newdomain.com/new/$1 [R=302,L,NC] </IfModule> This would go in the .htaccess file in the olddomain.com document root. I’d suggest leaving it as a 302 until you are sure it’s having the desired effect, as most browsers will cache 301’s and then not … Read more

Subfolder renaming

if you want to move your wordpress from blog1 to blog2 you will need to do 2 steps Step 1 – change site url from /wp-admin/options-general.php WordPress Address (URL) and Site Address (URL) Step 2 – rename blog1 folder to blog2 from cpanel and file manager when you save changes you will not be able … Read more