Genesis Themes

  • Home
  • Genesis Tutorials
  • WP Tutorial
  • Twenty Fifteen Theme
  • Social Media
  • WP Plugins

How to Avoid Landing Page Redirects in WordPress

Avoid Landing Page Redirects :

Minimize Redirects / Avoid Landing Page Redirects  is a Google's page speed performance technique for better speed and user experience. HTTP server common redirects 301 (permanent) and 302 (temporary)  are server side re directions,where user requested pages automatically change from one URL to another URL or another location.

Redirects really effects on page load time.When the browser request file or url to server,it will make a round trip for original and redirected page.To minimize redirects always prefer http 301 redirects to move your URL Structure.

When you have redirects ,the browser has to be download files from CSS,Images and external files.Here server will take time to lookups user requested location and redirect location.

Your website should stick with a consistent URL structure either www or no www.By default your web browser redirect example.com to www.example.com.But search engine's point of view, it's  duplicate content.To avoid such problems, redirect non www to www URL's .

If you are using WordPress,then 301 redirect non www to www or www to non www url structure properly via .htaccess file.If you change directly without 301 redirection, then your previous articles shows errors.After changing url structure resubmit your website in Google webmaster tools,so search engine freshly catch your content with one version.

Using 301 Redirect

To redirect from www.example.com to example.com add the following code to your .htaccess.

# redirect www to non www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]

To redirect from example.com to www.example.com,paste the following code in .htaccess file.

# redirect non www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

Finally avoid landing page redirects for better experience to users and speed up your WordPress website.

Related Posts

  • How to Add WordPress Pagination Without a Plugin
  • Specify a Vary: Accept-Encoding header in WordPress
  • Remove WordPress Emoji Script and Style
  • Inline Small CSS To Speed Up Your Website
  • How to Avoid CSS @Import in any WordPress Child Theme
  • Setting Up WordPress Breadcrumbs with Yoast SEO Plugin
  • Related Posts by Category in WordPress without Plugin
  • How to Remove Elegant Themes Footer Links
  • WordPress : Remove Transient Options in Database
  • How to Enable Gzip Compression in WordPress

Bluehost and Siteground Coupons for January 2016.

Best Premium WordPress Themes from TemplateMonster
download wordpress themes from MonsterOne

Categories

  • Blog
  • Blogger
  • Genesis Tutorials
  • Social Media
  • Top Websites
  • Twenty Fifteen WordPress Theme
  • WordPress Plugins
  • WordPress Tutorial