Your Ad Here
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to solve canonicalization issue or what is htacess file?
#1

Advertise Here

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.com [NC]
RewriteRule ^(.*)$ http://www.example .com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . http://www.example.com%1/%2 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www.example.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
htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software
Reply
#5
.htaccess is a configuration file for use on web servers running the Apache Web Server software. ... These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer.
Cheap VPS | $1 VPS Hosting
Cheap Windows VPS | Windows with Remote Desktop Access
Cheap Dedicated Hosting | $29 Dedicated Server with Free IPMI
Reply
#6
.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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Use of Robots.txt file esourceparts 0 38 04-12-2017, 11:11 AM
Last Post: esourceparts
  Can 301 redirects to homepage solve 404 errors in Google Search Console? albert_Cage 1 59 03-29-2017, 12:47 AM
Last Post: RH-Calvin
  How to find and solve website ranking issues in Google SERP? latestnewsheadlines 0 67 03-07-2017, 11:18 PM
Last Post: latestnewsheadlines
  How to check website ranking issue or domain problems? shilparawat 5 257 03-07-2017, 08:23 AM
Last Post: RichRich
  Canonical issue in SEO...? angilpari1122 3 99 01-26-2017, 11:43 PM
Last Post: RH-Calvin
  How to add .htaccess file for my wordpress websites? shilparawat 1 116 01-03-2017, 03:08 AM
Last Post: albert_Cage
  How to check my website for ranking issue? marcko 0 110 12-15-2016, 03:10 AM
Last Post: marcko
  What is the use of .htaccess file and how to make it? phpassignment 0 82 12-06-2016, 12:14 AM
Last Post: phpassignment
  How to check my website for ranking issue? shilparawat 8 404 12-03-2016, 05:23 AM
Last Post: david hong
  Which is Best Software To Any File To Concert PDF File..? sabeerakhan00 0 81 11-23-2016, 11:43 PM
Last Post: sabeerakhan00

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


Webmasterbabble.com, © 2012-2017 .