Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to solve canonicalization issue or what is htacess file?
#1
How to solve canonicalization issue or what is htacess file?
Reply
#2
.htacess file is used to solve the canonicalization issue of a website. It may happen that the home page of the site may take several urls like

1. http://www.abc[dot]com (with www)
2. http://www.abc[dot]com/index.html (Index page)
3. abc.com (without www)

The search engines might treat these URL as different and may divide the link juice gained by having various backlinks made with any of these 3 URLs. The link juice gets divided between these three URLs equally. .htacess file is created to have a single URL of the home page so that the link juice is passed onto single URL.
Reply
#3
First of all, you need to know about your site have which types of server. Mostly these types of server use a htaccess file:
1- Linux, 2- Apache
​​​​​​​
If your hosting account uses one of these types of the server then you can copy below code into your htaccess file.

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ example[dot]com [NC]
RewriteRule ^(.*)$ http://www[dot]example[dot]com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . http://www[dot]example[dot]com%1%2[R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www[dot]example[dot]com%1​​​​​​​ [R=301,L]\

Note: In red highlights, you need to replace example.com with your domain name and in green highlights, you need to replace with your .html or .php index page. Keep in mind do not write just index, write extension too.

After the copy, this code with your htaccess old code, Save it and upload to your root folder where your site has index page. Hope it will solve.
Reply
#4
if you are using word press, try all in one seo plugin which can adjust automatically.
Reply
#5
.htaccess is short for Hypertext Access, and is a configuration file used by Apache-based web servers that controls the directory that it "lives" in--as well as all the subdirectories underneath that directory. Also helps to create Custom Error Pages for Better SEO.
Cheap VPS | $1 VPS Hosting
Cheap Dedicated Hosting | Free IPMI

Reply
#6
My preferred method and a pretty airtight solution for canonicalization problems are using 301 redirects. A 301 redirect is a permanent redirect from one URL to another, using a 301 redirect will carry over any link authority from one URL to another, even from a different domain!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Issue of Posting on Thedodo.com vinodkumars 1 8 05-10-2017, 08:34 PM
Last Post: reenaroy
  How to solve open cart website crawling and indexing issue? gemstonebeads 0 15 03-27-2017, 07:23 PM
Last Post: gemstonebeads
  How to find and solve website ranking issues in Google SERP? latestnews 2 40 03-14-2017, 07:00 PM
Last Post: sharmaroshni
  must first solve the problem happywork 0 17 02-21-2017, 01:19 PM
Last Post: happywork
  Canonical issue in SEO...? angilpari1122 7 91 01-29-2017, 05:24 PM
Last Post: angilpari1122
  How to check website ranking issue or domain problems? shilparawat 0 48 01-06-2017, 02:25 PM
Last Post: shilparawat
  Solve all Types harryparkar43 0 44 01-05-2017, 11:26 PM
Last Post: harryparkar43
  Different Between 301 Redirect and Canonicalization..? Adhitimishra23 15 490 12-28-2016, 06:44 PM
Last Post: Jyoti sharma
  How to check domain issue problem? krishnanayak 2 39 12-08-2016, 02:50 AM
Last Post: manchun
  How to solve the wood floor crack happywork 0 23 11-30-2016, 06:57 PM
Last Post: happywork

Forum Jump:


Users browsing this thread: 1 Guest(s)