Showing posts with label On-Page SEO. Show all posts
Showing posts with label On-Page SEO. Show all posts

Friday, October 12, 2012

Change of Domain 301 Redirect htaccess

For SEO best practices, when you change domain name of existing website, we need to setup 301 redirect of all existing web pages exactly to a new domain name. This is very important for Search engines detect a new version of URLs

Using the following htaccess code we will redirect all the existing pages of our website to new.

RewriteEngine On
# Redirect all urls with new domain name
RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^(.*)$$1 [r=301,nc]

# Redirect with www of new domain.
RewriteCond %{http_host} ^ [nc]
RewriteRule ^(.*)$$1 [r=301,nc]

about code will redirect all the existing pages of current website to new website with same request URL.

Monday, June 11, 2012

redirect with WWW htaccess

If you need to redirect your domain name with "WWW" you can use the following htaccess code for Apache based web servers.

Redirect with WWW htaccess

Options +FollowSymLinks
RewriteEngine On

# Mention Domain name

RewriteCond %{HTTP_HOST} ^ [NC]
Rewriterule ^(.*)$$1 [R=301,NC]

# OR
# get domain name automatically.

RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

Tuesday, March 6, 2012

How to SEO Website, Series.

Search Engine Optimization SEO, is an key work for any website to promote your business or brand through web among Search Engines. Here is the Major points as a answer for your question, We will saw one by one in this "How to SEO Website" Series.

How to SEO your Website

12. Optimize Title
11. Local Listing
10. Sitemap Submission
09. Blogger Linking
08. Sidelink Showing
07. Google Trends
06. Social Singles
05. Followed Links
04. 404 Fixes
03. 301 Fixes
02. Indented Listings
01. You will get first Place on Google