<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Arun Raj</title>
    <description>A6un&apos;s Tech Blog</description>
    <link>https://arun.fyi/tech/</link>
    <atom:link href="https://arun.fyi/tech/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Thu, 29 Oct 2026 13:51:48 +0000</pubDate>
    <lastBuildDate>Thu, 29 Oct 2026 13:51:48 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>URL Redirects using Cloudflare</title>
        <description>&lt;p&gt;I was moving my website from one domain to another and I realized that I needed to setup URL redirects so that my google indexed pages and page ranks are not affected.
I was searching for different ways and finally concluded that using Cloudflare with its page rule was the easiest. 
Initially I was doing using a free hosting service and had setup the &lt;a href=&quot;https://www.freecodecamp.org/news/how-to-redirect-http-to-https-using-htaccess/&quot;&gt;redirects using the .htaccess file&lt;/a&gt;.
Later I noticed that it was not efficient as the free webhosting did not offer SSL.&lt;/p&gt;

&lt;p&gt;Then I found cloudflare and started using it.
URL redirects can be easily setup with Cloudflare free account where they offer setting upto 3 page rules - follow the setps &lt;a href=&quot;https://developers.cloudflare.com/support/page-rules/configuring-url-forwarding-or-redirects-with-page-rules/&quot;&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://a6unraj.github.io/assets/images/img117.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img117.jpg&quot; alt=&quot;img86&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The above pages rules helped me redirect my main domain, subdomain and all the webpages in them to be redirected from my old domain &lt;a href=&quot;https://arunraj.eu&quot;&gt;arunraj.eu&lt;/a&gt; to new domain &lt;a href=&quot;https://arunraj.me&quot;&gt;arunraj.me&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Fri, 23 Jun 2023 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2023/enabling-free-url-redirect-using-cloudflare/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2023/enabling-free-url-redirect-using-cloudflare/</guid>
        
        
        <category>Web Hosting</category>
        
      </item>
    
      <item>
        <title>Automatically create a blog post from Telegram Channel post</title>
        <description>&lt;p&gt;IFTTT was the first online Automation platform I used and was fancied by it’s services. IFTTT, after their free services became limited, I was looking for a new automation service which can help me automate creation of blog posts on Tumblr and Wordpress. Then, I came across Integromat( now called Make.com ) and it seems to have something which IFTTT doesn’t have. Here I am sharing a use case of creating a blog post on Wordpress easily using Telegram.&lt;/p&gt;

&lt;p&gt;Prerequisites - 
1) A telegram channel
2) A bot id created and added as administrator of the telegram channel
3) A self hosted wordpress blog with &lt;a href=&quot;https://wordpress.org/plugins/integromat-connector/&quot;&gt;integromat&lt;/a&gt; connector plugin installed&lt;/p&gt;

&lt;p&gt;Create a bot in Telegram
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img101.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img101.jpg&quot; alt=&quot;img101&quot; /&gt;&lt;/a&gt;
And add it a ss administrator to the Telegram channel
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img102.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img102.jpg&quot; alt=&quot;img102&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go to make.com and create the below scenario
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img103.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img103.jpg&quot; alt=&quot;img103&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img104.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img104.jpg&quot; alt=&quot;img104&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img105.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img105.jpg&quot; alt=&quot;img105&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img106.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img106.jpg&quot; alt=&quot;img106&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img107.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img107.jpg&quot; alt=&quot;img107&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img108.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img108.jpg&quot; alt=&quot;img108&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img109.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img109.jpg&quot; alt=&quot;img109&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img110.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img110.jpg&quot; alt=&quot;img110&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img111.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img111.jpg&quot; alt=&quot;img111&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img112.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img112.jpg&quot; alt=&quot;img112&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img113.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img113.jpg&quot; alt=&quot;img113&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img114.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img114.jpg&quot; alt=&quot;img114&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img115.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img115.jpg&quot; alt=&quot;img115&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a post from Telegram and check it
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img116.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img116.jpg&quot; alt=&quot;img116&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Sat, 24 Dec 2022 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2022/creating-a-blogpost-from-telegram-channel/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2022/creating-a-blogpost-from-telegram-channel/</guid>
        
        
        <category>Web Development</category>
        
      </item>
    
      <item>
        <title>Enabling free HTTPS/SSL for a self-hosted wordpress website</title>
        <description>&lt;p&gt;I bought a cheap website hosting from &lt;a href=&quot;https://www.atspace.com/&quot;&gt;Atspace&lt;/a&gt;, however I found that they are not giving SSL for free.
It was required to either buy SSL certificate for the domain from them or buy the certificate from a provide outside and upload it.
It’s easy to get a free SSL certificate from &lt;a href=&quot;https://letsencrypt.org/&quot;&gt;LetsEncrypt&lt;/a&gt;.
If you are using wordpress,&lt;a href=&quot;https://wordpress.org/plugins/really-simple-ssl/&quot;&gt;Really Simple SSL&lt;/a&gt; wordpress plugin, provides easy way to get a SSL certificate from LetsEncrypt.&lt;/p&gt;

&lt;p&gt;Install the &lt;a href=&quot;https://wordpress.org/plugins/really-simple-ssl/&quot;&gt;Really Simple SSL&lt;/a&gt; plugin and proceed with the steps in the plugin.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://a6unraj.github.io/assets/images/img86.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img86.jpg&quot; alt=&quot;img86&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img87.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img87.jpg&quot; alt=&quot;img87&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img88.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img88.jpg&quot; alt=&quot;img88&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img89.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img89.jpg&quot; alt=&quot;img89&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img90.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img90.jpg&quot; alt=&quot;img90&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img91.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img91.jpg&quot; alt=&quot;img91&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img92.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img92.jpg&quot; alt=&quot;img92&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create TXT record in the domains DNS management settings to verify the domain
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img93.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img93.jpg&quot; alt=&quot;img93&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img94.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img94.jpg&quot; alt=&quot;img94&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copy Certificate, Private Key, Certificate Authority Bundle which is generated from LetsEncrypt and paste it in the SSL section of the domains control panel
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img95.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img95.jpg&quot; alt=&quot;img95&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img96.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img96.jpg&quot; alt=&quot;img96&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img97.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img97.jpg&quot; alt=&quot;img97&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the certificates are uploaded, the SSL becomes active
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img98.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img98.jpg&quot; alt=&quot;img98&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img99.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img99.jpg&quot; alt=&quot;img99&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img100.jpg&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img100.jpg&quot; alt=&quot;img100&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

</description>
        <pubDate>Mon, 10 Jan 2022 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2022/enabling-free-SSL-HTTPS-for-wordpress-website/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2022/enabling-free-SSL-HTTPS-for-wordpress-website/</guid>
        
        
        <category>Web Hosting</category>
        
      </item>
    
      <item>
        <title>Creating a blog with Netlify, Ghost, DigitalPress</title>
        <description>&lt;p&gt;Headless CMS is getting famous nowadays and being the fact that it’s easy to setup and free.
Here I am going to show how to setup a blog with Netlify + Github + Ghost.
Netlify provides the CI/CD, content will be hosted on Github and Ghost will be used to create the blog content.&lt;/p&gt;

&lt;h6 id=&quot;step-1&quot;&gt;STEP 1:&lt;/h6&gt;
&lt;p&gt;Use the jamify starter template from the Netlify Template site
&lt;a href=&quot;https://templates.netlify.com&quot;&gt;https://templates.netlify.com&lt;/a&gt;
&lt;a href=&quot;https://templates.netlify.com/template/jamify-starter-ghost&quot;&gt;https://templates.netlify.com/template/jamify-starter-ghost&lt;/a&gt;
Click Deploy to Netlify
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img58.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img58.png&quot; alt=&quot;img58&quot; /&gt;&lt;/a&gt;
Connect to Github and enter the repo name that needs to be created
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img59.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img59.png&quot; alt=&quot;img59&quot; /&gt;&lt;/a&gt;
The site is deployed and will be available with a generated sub-domain on netlify
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img60.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img60.png&quot; alt=&quot;img60&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img61.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img61.png&quot; alt=&quot;img61&quot; /&gt;&lt;/a&gt;
Change site name to your own url
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img62.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img62.png&quot; alt=&quot;img62&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6 id=&quot;step-2&quot;&gt;STEP 2:&lt;/h6&gt;
&lt;p&gt;The blog content from the deployed template comes from the Ghost demo website, so we have to replace with our own content.
Blogging on Ghost’s own blogging platform &lt;a href=&quot;https://ghost.org&quot;&gt;https://ghost.org&lt;/a&gt; is not free, however there are providers like &lt;a href=&quot;https://www.digitalpress.blog/&quot;&gt;Digital Press&lt;/a&gt; where you can create a free ghost blog with limited features.
I have created a blog in DigitalPress and going to use if for creating posts.
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img63.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img63.png&quot; alt=&quot;img63&quot; /&gt;&lt;/a&gt;
I have created a sample post in DigitalPress blog.
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img71.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img71.png&quot; alt=&quot;img71&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6 id=&quot;step-3&quot;&gt;STEP 3:&lt;/h6&gt;
&lt;p&gt;Now we can link the blog contents from the Ghost blog to Netlify site.
First Change the site URL in the site config file.
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img64.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img64.png&quot; alt=&quot;img64&quot; /&gt;&lt;/a&gt;
Get the API key for content from Digital Press
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img65.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img65.png&quot; alt=&quot;img65&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img66.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img66.png&quot; alt=&quot;img66&quot; /&gt;&lt;/a&gt;
Create a .ghost.json file in the repository and add the apikey to apiurl
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img68.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img68.png&quot; alt=&quot;img68&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img67.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img67.png&quot; alt=&quot;img67&quot; /&gt;&lt;/a&gt;
As soon as the changes to the files in the repo are done Netlify autotriggers a deploy, however you can still trigger a deploy again
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img70.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img70.png&quot; alt=&quot;img70&quot; /&gt;&lt;/a&gt;
After deploy you can view your blog content from DigitalPress linked to the Netlify Site
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img72.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img72.png&quot; alt=&quot;img72&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go ahead and create blog content on the DigitalPress Ghost blog and after creating each blog post Trigger deploy to view the new posts
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img69.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img69.png&quot; alt=&quot;img69&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Sat, 05 Jun 2021 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2021/creating-a-blog-with-netlify-ghost-digitalpress/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2021/creating-a-blog-with-netlify-ghost-digitalpress/</guid>
        
        
        <category>Web Development</category>
        
      </item>
    
      <item>
        <title>Creating dynamic link URL shortener with custom domain using Google Firebase</title>
        <description>&lt;p&gt;I was checking for some PHP scripts which I could use as a URL shortener with my own short and easily remembered domain. Lately I discovered that google was providing this awesome service for free.&lt;/p&gt;

&lt;p&gt;Google replaced its URL shortener service goo.gl with Dynamic Links firebase.google.com/products/dynamic-links providing more features and flexibility.&lt;/p&gt;

&lt;p&gt;Pros :&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Can be configured with your own custom-domain - I was able to register a TLD which is not that costly and use it as a URL shortener (arun.fyi).&lt;/li&gt;
  &lt;li&gt;Can be configured as a dynamic link, if you own android and iphone apps, you can redirect the link behaviour to open in the respective apps.&lt;/li&gt;
  &lt;li&gt;Analytics is provided for the dynamic links created.&lt;/li&gt;
  &lt;li&gt;You can define your own dynamic link and change the deep links behind.
For example : I created the link arun.fyi/mp3 to redirect to some page in a6unraj.com domain 6 months ago and now I no longer want to use that domain, so I changed the deep link behind and now it redirects a page in different domain( arunraj.eu ).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The setup is quite easy&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Buy the domain&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Create a project in Firebase console https://console.firebase.google.com/project/
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img43.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img43.jfif&quot; alt=&quot;img43&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img44.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img44.jfif&quot; alt=&quot;img44&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img45.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img45.jfif&quot; alt=&quot;img45&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img46.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img46.jfif&quot; alt=&quot;img46&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Setup URL Prefix
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img47.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img47.jfif&quot; alt=&quot;img47&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img48.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img48.jfif&quot; alt=&quot;img48&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img49.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img49.jfif&quot; alt=&quot;img49&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img50.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img50.jfif&quot; alt=&quot;img50&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Setup A records in the DNS settings where the domain was registered I have setup URL prefix for arun.fyi&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Start using the service once the URL prefix setup is completed.
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img51.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img51.jfif&quot; alt=&quot;img51&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Click on New Dynamic Link and you can define your own link
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img52.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img52.jfif&quot; alt=&quot;img52&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img53.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img53.jfif&quot; alt=&quot;img53&quot; /&gt;&lt;/a&gt;
Setup behaviour for android and iphone apps
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img54.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img54.jfif&quot; alt=&quot;img54&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img55.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img55.jfif&quot; alt=&quot;img55&quot; /&gt;&lt;/a&gt;
Setup meta tags for social media platforms
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img56.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img56.jfif&quot; alt=&quot;img56&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img57.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img57.jfif&quot; alt=&quot;img57&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The dynamic link is all setup and you can try it &lt;a href=&quot;https://arun.fyi/clock&quot;&gt;https://arun.fyi/clock&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Sun, 21 Mar 2021 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2021/creating-dynamic-link-URL-shortener-with-custom-domain-using-Google-Firebase/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2021/creating-dynamic-link-URL-shortener-with-custom-domain-using-Google-Firebase/</guid>
        
        
        <category>Web Development</category>
        
      </item>
    
      <item>
        <title>Pointing a blog to a subdirectory in primary domain</title>
        <description>&lt;p&gt;The blog is first to be setup at the sub-domain.
For ex :In the DNS management of my domain, I used CNAME records to point my sub domain to blogger.
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img42.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img42.jfif&quot; alt=&quot;img42&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then I have added a sub directory in my hosting space using c-panel and added 2 files to the folder ( .htaccess and proxy.php)
&lt;a href=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img41.jfif&quot;&gt;&lt;img src=&quot;https://github.com/a6unraj/a6unraj.github.io/raw/master/assets/images/img41.jfif&quot; alt=&quot;img41&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The htaccess file with below code&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;RewriteEngine On
RewriteBase /memories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ proxy.php?url=http://memories.arunraj.eu/$1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The proxy.php file with below code&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;?php
$from = &quot;memories.arunraj.eu&quot;;
$unto = &quot;arunraj.eu/memories&quot;;
function fetch($url) {
$curl = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$html = curl_exec($curl);
$content_type = curl_getinfo($curl, CURLINFO_CONTENT_TYPE);
curl_close($curl);
return array($html, $content_type);
}
list($html, $content_type) = fetch($_GET[&apos;url&apos;]);
// Fix root-relative links etc.
$html = preg_replace(&apos;/\b(href|src|rel)=&quot;\//&apos;, &apos;$1=&quot;http://&apos;.$unto.&apos;/&apos;, $html);
// Replace the old URL with the new
$html = str_replace($from, $unto, $html);
header(&quot;Content-type: $content_type&quot;);
echo $html;
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Edited the blogger theme in HTML and added the below script under header tags&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;script&amp;gt;
if (location.host == memories.arunraj.eu)
{
location.replace(location.href.replace(memories.arunraj.eu, arunraj.eu/memories));
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Remember to add the below code in the header if the stylesheet is blocked with error
Mixed Content: The page at ‘https://arunraj.eu/memories/’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://arunraj.eu/memories/assets/css/main.css’. This request has been blocked; the content must be served over HTTPS.&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;upgrade-insecure-requests&quot;&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now accessing the blogger url &lt;a href=&quot;http://a6unraj.blogspot.com&quot;&gt;http://a6unraj.blogspot.com&lt;/a&gt; redirects and loads the blog posts in the subdirectory of my domain.&lt;/p&gt;
</description>
        <pubDate>Fri, 20 Mar 2020 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2020/pointing-a-blog-to-a-subdirectory-in-primary-domain/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2020/pointing-a-blog-to-a-subdirectory-in-primary-domain/</guid>
        
        
        <category>Web Hosting</category>
        
      </item>
    
      <item>
        <title>Transfer files between Android Mobile and PC wirelessly</title>
        <description>&lt;p&gt;1) For transferring from PC to mobile the app Portal can be used.&lt;/p&gt;

&lt;p&gt;Install the app and connect the PC and mobile to the same Wi-Fi hotspot
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img76.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img76.png&quot; alt=&quot;img76&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img77.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img77.png&quot; alt=&quot;img77&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Then goto the url http://portal.pushbullet.com and  scan the QR code from the mobile app
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img78.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img78.png&quot; alt=&quot;img78&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img79.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img79.png&quot; alt=&quot;img79&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Drag and drop files to the browser and the files are transferred to mobile&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://a6unraj.github.io/assets/images/img80.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img80.png&quot; alt=&quot;img80&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img81.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img81.png&quot; alt=&quot;img81&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img82.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img82.png&quot; alt=&quot;img82&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;2) For transferring from mobile to PC the app ES file explorer can be used.&lt;/p&gt;

&lt;p&gt;Install the app and after connecting the mobile and PC to the same wifi hotspot open the app
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img83.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img83.png&quot; alt=&quot;img83&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Goto the url shown in the app
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img84.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img84.png&quot; alt=&quot;img84&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;The folders of the root directory are listed and files can be downloaded. To swap between internal and external storage change the root directory in settings
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img85.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img85.png&quot; alt=&quot;img85&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;
</description>
        <pubDate>Thu, 01 Mar 2018 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2018/transfer-files-between-android-mobile-and-pc-wirelessly/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2018/transfer-files-between-android-mobile-and-pc-wirelessly/</guid>
        
        
        <category>Mobiles</category>
        
      </item>
    
      <item>
        <title>Hosting a simple website on google cloud</title>
        <description>&lt;p&gt;Google cloud provides the easiest way to host a static website (set of html pages without a DB).
The first year service comes with free of cost considering that your website doesn’t hit much traffic and doesn’t involve much storage.
The setup is quite easy&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Signup for the trial account here which has a trial period of 1 year and credited with 300$ credits to use other Google Apps
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img33.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img33.png&quot; alt=&quot;img33&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Enable billing and add a credit card to your account to verify that you are a human, currently debit card is not supported but still you can add a debit card(need to be changed after trial period) and you will be charged 1$(50 INR) later will be credited once the biller is verified.
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img34.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img34.png&quot; alt=&quot;img34&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Add CNAME record to your DNS settings of your domain provider to verify the domain.
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img35.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img35.png&quot; alt=&quot;img35&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Create a bucket with the name of the domain/subdomain where you want the site to be available ( for example mp3.a6unraj.com)
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img36.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img36.png&quot; alt=&quot;img36&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img37.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img37.png&quot; alt=&quot;img37&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Once you have completed building an offline copy of your static site you can go into the bucket and upload files into the bucket(css, js, html retaining the folder structure)
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img38.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img38.png&quot; alt=&quot;img38&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img39.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img39.png&quot; alt=&quot;img39&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Remember to make the index.html and 404.html file as public as above and set them to load in the configuration
&lt;a href=&quot;https://a6unraj.github.io/assets/images/img40.png&quot;&gt;&lt;img src=&quot;https://a6unraj.github.io/assets/images/img40.png&quot; alt=&quot;img40&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now the site is ready for display.&lt;/p&gt;
</description>
        <pubDate>Tue, 13 Feb 2018 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2018/hosting-a-simple-website-on-google-cloud/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2018/hosting-a-simple-website-on-google-cloud/</guid>
        
        
        <category>Web Hosting</category>
        
      </item>
    
      <item>
        <title>Free webhosting services for static website.</title>
        <description>&lt;p&gt;Today I was in search of free webhosting service providers&lt;/p&gt;

&lt;p&gt;Since &lt;a href=&quot;http://000webhost.com&quot;&gt;000Webhost&lt;/a&gt; no longer support ad-free hosting(adds a ad banner at the bottom right corner of the web pages). Then I came accross AWS(Amazon Web Services) and Google Cloud Platform.&lt;/p&gt;

&lt;p&gt;Initially I tried to host it using &lt;a href=&quot;https://aws.amazon.com/amplify/hosting/&quot;&gt;AWS Amplify&lt;/a&gt;, AWS is free if your site qualifies the FreeTier. But after all setup I needed a credit card to verify my identity, so the service setup was not successful since I do not have a credit card.&lt;/p&gt;

&lt;p&gt;Alternatively I started checking &lt;a href=&quot;https://cloud.google.com/solutions/web-hosting&quot;&gt;Google Cloud&lt;/a&gt;, where after the signup you will be given 300$ credits to use if for an year after verifying your billing method(credit card/debit card). If the credits are used withing the trial period or if the trial period(12 months) expires you need to opt for an upgrade to keep the service running.&lt;/p&gt;

&lt;p&gt;I just tried a sample setup and the site setup was successful :)&lt;/p&gt;
</description>
        <pubDate>Mon, 15 Jan 2018 00:00:00 +0000</pubDate>
        <link>https://arun.fyi/tech/2018/free-webhosting-with-easy-setup/</link>
        <guid isPermaLink="true">https://arun.fyi/tech/2018/free-webhosting-with-easy-setup/</guid>
        
        
        <category>Web Hosting</category>
        
      </item>
    
  </channel>
</rss>
