Comment on WordPress 301 Redirect by SEO Gold Coast Services.

Hmm, after rereading what I suggested the .htaccess option isn’t suitable for all directories like /wp-content/plugins/ it would 301 redirect everything under the folder to home rather than just stop users seeing the contents!

I’ve deleted that part of my earlier comment and pasted below with a better modification to explain what it actually does.

How to 301 redirect an entire directory to home.

You have two directories you no longer use and want to 301 redirect everything that used to be in them to home, this could be thousands of images or webpages.




Add this to your root .htaccess file

Note if “RewriteEngine On” is already within the file it’s not needed again.

RewriteEngine On
RewriteRule ^wp-content/hidden/(.*)$ [R=301,L]
RewriteRule ^oldstuff/(.*)$ [R=301,L]

This would 301 redirect everything under the folders “/wp-content/hidden/” and “/oldstuff/” to my home page.

This can be useful where you’ve deleted hundreds of tags, tags are rubbish SEO wise and should be avoided, if you deleted all your sites tags you could build a set of 301 redirects to conserve the link benefit.

You’ve delete all tags and want them all 301 redirecting:

RewriteEngine On
RewriteRule ^tag/(.*)$ [R=301,L]

You’ve deleted some tags called tag 1, tag 2 and tag 3, but kept tag 5 and tag 5

RewriteEngine On
RewriteRule ^tag/tag-1/(.*)$ [R=301,L]
RewriteRule ^tag/tag-2/(.*)$ [R=301,L]
RewriteRule ^tag/tag-3/(.*)$ [R=301,L]

Tag 1 to 3 will 301, the rest won’t be.

Best to try to find a page that’s similar to redirect to rather than just back to home

RewriteEngine On
RewriteRule ^tag/tag-1/(.*)$ [R=301,L]
RewriteRule ^tag/tag-2/(.*)$ [R=301,L]
RewriteRule ^tag/tag-3/(.*)$ [R=301,L]

Above I don’t have a relevant page to tag-1 so 301 to home, but do to tag-2 have a post about tag 2 and have a category similar to tag 3.

I have sites with dozens of 301 redirect rule sets like these.


More Comments on WordPress 301 Redirect by SEO Gold Coast Services

How to Hide Website Directories

Hiding a directory is a server side setting.

Assuming you run on an Apache server it’s having something like:

Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch

Into your httpd.conf file for each domain on a server, …

Canonical non www to www 301 Redirect for WordPress

I use WordPress on around 70 domains and it works fine on my sites.

Your code looks fine, most of my WordPress sites .htaccess file looks like this:

RewriteCond %{HTTP_HOST} !^$
RewriteRule (.*) …

More Comments by SEO Gold Coast Services

Google Defamation Process

Most likely Google alone.

Google trusts what they are told via the defamation reports, there doesn’t appear to be any detailed checking on Google’s part!

So if someone makes a credible defamation …

Google Mobile Usability Test

SEO tools like SEOptimer are generally not very good, they are built by programmers who are human and they make mistakes, so I’d take the SEOptimer Usability Device Rendering F …

Twitter Permanent Suspension

When you said “I apply most of the tricks talked about in this article” does that mean you are following at least 400 Twitter accounts everyday and unfollowing them all …

Camping World Biloxi

This is a Camping World Biloxi SEO test.

The Camping World Biloxi Google search phrase sees around 1,900 searches a month, a number 1 Google listing for Camping World Biloxi would …

Revolution Slider JS Bloated

All because I avoid using flashy JS features via plugins like Slider Revolution to maximise pagespeed does not mean I don’t know how to use flashy Javascript features whilst minimising …

GTmetrix Website Speed Test Location

Regarding GTmetrix speed testing you have to take into account hosting location when comparing 2 websites targeting different countries.

My SEO Gold site which mostly targets the UK market is hosted …

Revolution Slider Images NOT Responsive

The Revolution Slider SEO Optimization article is a snippet of a larger article Optimized Images Load Faster and Consume Less Cellular Data which looks at a website created by a …

It’s Illegal to Threaten Someone Online

WoW! I critique the old out of date web design of a local Skegness business and James Smith (AKA: fake name) resorts to childish personal insults, why would you do …