Your July 2018 Search Engine Bytes Digest
 by Kristi Hagen

How to properly code a 301 redirect for sub-domains.

  • How should I code a 301 redirect for sub-domains when...

    1. redirecting to a different sub-domain?
      Example: http://business.townport.org/list
      redirected to: http://newtown.portmaster.com/list/
    2. redirecting the sub-domain to the main domain?
      Example: http://business.townport.org/news/
      redirected to: https://townmaster.org/events/

Answer:

#1: Assuming you want everything within http://business.townport.org/list to be redirected to the same file names and directory structured at http://newtown.portmaster.com/list/, you should add this code to your .htaccess file on the http://business.townport.org/ server:

RewriteRule ^list/(.*)$ http://newtown.portmaster.com/list/$1 [R=301,NC,L]

#2: To redirect the sub-domain to the main domain, add this redirect code to your .htaccess file also on the http://business.townport.org/ server

RewriteRule ^news/(.*)$ https://townmaster.org/events/$1 [R=301,NC,L]

That should do it.SEN article end


How to get thumbnail images in Google's Search Results for your Recipes.

  • If I search for, let's say, Pina Colada I get a lot of results with images:

    Pina Colada search results

Already a member? Sign in here

Read the rest of this article,
and get all this for only $1.

  • The Search Engine Strategies Updates for December 2018
  • Ultimate Guide to Avoiding Google Penalties
  • The Complete Site Audit Checklist
  • The Definitive Local Search Audit Checklist
  • 100's of Strategic SEO Articles and Q&As
  • The Professional Engine Master's Chart
  • The Internet Marketing Glossary
  • The Ultimate Directory Submission List
  • The Pro SEO's Local Search Directory List
  • 16 years of SEN Archives
  • PLUS, as a Full SEN Basic Member, you'll be eligible for hundreds of dollars of discounts on SEO courses ranging from beginner to master on a variety of topics including organic search, local search, and social networking.

  • Your $1 Trial is good for 7 days at which time your card will be charged $29/mo unless you cancel before December 26th, 2018

 This form is encrypted for your security