How to Remove Country Specific URL from Blogspot / Blogger Site | Remove .in .fr .ca

For web developers, Country Specific URLs may be an issue at times. When accessed from India. However, since certain applications are designed to operate on the.com domain name, they will not work on that country-specific URL. So I conducted some research to find a solution to this issue. And now, here’s the answer.

How to Remove a Blogspot / Blogger Country Specific URL

Remove the.in /.fr /.ca /.au /.pk from your blogger site and replace it with a.com domain name from anywhere in the world:

Go to your blogger account and log in.
Edit HTML in the Template
Look for the head> tag in the HTML code. It will most likely be at the top of the code.
Just below the head> tag, paste the following code.

  • Paste the following code just below the <head>
<script type=”text/javascript”>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf(“.”));
if (ctld != “.com”) {
var ncr = “http://” + blog.substr(0, blog.indexOf(“.”));
ncr += “.blogspot.com/ncr” + slug;
window.location.replace(ncr);}
</script>

Save the template and take use of the.com domain name.

I’m hoping that you’ll be able to obtain a.com domain name instead of a country-specific URL by utilising this technique. If you find this article to be useful and interesting, please leave a comment.

How to Embed a PDF file in a Website using HTML Code

You’ve probably seen a lot of websites that display pdf files right on their pages rather than providing a link to download the file. It’s also possible to do it on your own blog or website. we will show you how to accomplish it using a straightforward approach.

How to Use HTML Code to Embed a PDF File in a Website

To embed a pdf file in your website, you’ll need to utilise extremely basic HTML code. It would be preferable if you created the PDF yourself and submitted it to the server. Simply grab the PDF file’s URL and then follow the instructions below to embed the PDF on your website.
1) Open the HTML code for the webpage where you wish to embed the PDF.
2) Go to the precise spot on your website where you want it to appear.
3) Add the following code to your page:
<embed src=”URL_of_the_PDF_file.pdf” width=”550″ height=”750″></embed>
4) In the src box, paste the URL of the PDF file. Width and height may be modified to fit your website’s display area.
A basic example of one of these PDF files is shown below. I hope you’ll utilise this easy code to embed PDF files to your website.