Our Blog

Leveraging non text/html content with rel=canonical HTTP Headers

You Are Here :
Our Blog

Leveraging non text/html content with rel=canonical HTTP Headers

Major search engines such as Google, Bing, and Yahoo allowed webmasters to use the link rel=”canonical” tag that allowed them to include a URL in text/html form for indexing. In recent times, Google has also allowed webmasters to use the rel=canonical tag for HTTP Headers.

This move allowed SEOs to ensure that non text/html content like PDF files that also form part of several ecommerce sites for creating brochures, product manuals, etc., receive a specified URL. In addition, this feature also helped reduce duplicate content that could penalize websites due to revised search algorithms.

Canonical HTTP headers have not been fully exploited since they pose difficulties in creation and implementation as compared to the link HTML tag. They also need to be tested rigorously on a test environment before being utilized on live servers.

Here are some tips on how to use the rel=canonical HTTP Header to text/HTML and non text/HTML content.

If you have text/HTML content which supports PHP then you can easily add the rel=”canonical” HTTP Header that in turn will add this link to the desired headers before sending them. This function is similar to the rel=”canonical” link tag except that it uses the HTTP Header instead of the link.

If you want to modify the HTTP Header by using .htaccess for non text/HTML content such as PDF files then the command will append the HTTP Header to that PDF file, which in turn will direct towards a specified HTML page by using the URL. A wild card string using ? or a filename should be included in the filename argument.

You can also engage in dynamic HTTP Header implementation if you are familiar with .htaccess as well as PHP. You can begin by using the RewriteRule command to rewrite a URL and create a PHP file. This will help redirect search engines towards the pdf.php file. You can then add the canonical HTTP Header after including the code for performing conditional logic to confirm if the URL of the PDF file actually exists.

You can use this logic on other file formats such as txt or csv files too that might hold a listing of PDF files or tables containing data within the file. It is also very important to specify content type as application/pdf to ensure that the file is not mistaken as a text/HTML file.

You can use several internet-based tools to confirm if your HTTP Headers are sent. You could try using tools such as the Web Developer Toolbar from Firefox or Live HTTP Headers to verify the status of your Headers.

The above tips will help you to leverage non text/HTML content with rel=”canonical” HTTP headers. Try adapting this function for your benefit and remember to test the process before going live.

Why Choose Anuva?

Anuva is a leading Digital Marketing Company providing results-driven Internet Marketing Services including Local SEO Services, Online Reputation Management Services, WordPress SEO, Ecommerce SEO, Professional SEO Services, SEO Consulting Services, SEO Audit Services, etc. to clients worldwide. Looking for Google Ads Services OR Facebook Ads Agency? We are a highly experienced PPC Management Company specialized in eCommerce PPC Management. Please check our Client Testimonials and SEO Rankings for you to see the outstanding results we have achieved. Contact us to generate a Huge ROI on your invested dollars from our strongest Online Marketing Services.

We Are Qualified
SEO Ranking
digital marketing automation platform alberta 1
marketing automation softwares alberta 1
marketing automation webcasting 2
marketing automation webcasts alberta 1
online agency marketing automation platform 4
google.com Ranking As Of 13-Jul-2021
ares p2p file sharing program 1
p2p file sharing platform ares 1
ares p2p network 1
revolutionary p2p file sharing system 1
official ares download 2
google.com Ranking As Of 13-Jul-2021
ace digital language lab 1
ace digital language laboratory 1
ace digital language labs 1
ace digital languages lab 1
ace digital language laboratories 1
google.co.in Ranking As Of 13-Jul-2021
buy csr tools 1
search sustainability ratings 1
social responsibility and sustainability ratings 1
social responsibility ratings 4
csr data 1
google.com Ranking As Of 13-Jul-2021
emenu international 1
international e-menu 1
international interactive emenu 1
interactive emenu 2
emenu solutions 2
google.com Ranking As Of 13-Jul-2021
download topor pcb 1
topor competitive advantages 1
topological router for pcb 2
pcb design time reduction 2
topological router for printed circuit boards 3
google.com Ranking As Of 13-Jul-2021
premium antispam service ann arbor 5
secure hosted email services ann arbor 5
cloud email services ann arbor 10
secure email hosting services ann arbor 8
hosted email services ann arbor 10
google.com Ranking As Of 13-Jul-2021
real-time breach detection somerset 1
somerset real-time breach detection 1
real-time breach detection in somerset nj 5
real-time breach detection in somerset 2
real-time breach detection somerset nj 2
google.com Ranking As Of 13-Jul-2021
buy install monitor software 1
buy install monitor softwares 1
buy program installation monitor 3
buy program installation monitor tool 3
software installation monitor tool 7
google.com Ranking As Of 13-Jul-2021
oracle predictive dialer call center solution 1
oracle preview dialing software 1
predictive dialer software oracle 1
oracle call center software service 6
oracle call center software services 4
google.com Ranking As Of 13-Jul-2021
bingo software for website 1
custom html5 poker software 1
bitcoin poker software for websites 3
bitcoin poker software for web 7
html5 poker software 5
google.com Ranking As Of 13-Jul-2021
railcar repair management software 1
railcar repair management softwares 1
railcar repair management 1
railcar service software 1
railcar software 4
google.com Ranking As Of 13-Jul-2021
crystal ssrs reports scheduling tool 1
schedule crystal ssrs report 1
schedule crystal ssrs reports 1
ssrs report scheduler software 1
ssrs crystal reports scheduler tool 1
google.com Ranking As Of 13-Jul-2021
You have all done a wonderful job making both of my websites look more modern and professional. I would also like to say how excellent your customer support has been. Any and all concerns I had were addresses immediately with no questions asked....
- Beau Mason
We are more than satisfied with Anuva's Search Engine Optimization services. They have developed and upgraded our website and promoted the business very efficiently. Kudos! Keep it up! We have emerged as a reputed large scale organization and...
- Richard, Seattle
Why Us?
  • 70% + Cost Savings
  • IP Protection & Confidentiality
  • Expert Team with Global Delivery Experience
  • Business and Domain Expertise
  • Maintain your Competetive Edge

Call Me Back

    Success! Thanks for Your Request.
    Error! Please Try Again.