Github page redirects to custom domain - github

I have Github Pages Site setup at doshisid.github.io. But it gets redirected to sid.sh. I have one another domain which points to the same GitHub page and it works fine (doshisid.com). But the default domain provided by GitHub doesn't. I can't figure out how is the default domain getting redirected to a custom domain.

whatever domain you want in there; inside the repo create a new file CNAME and then add the domain name like www.xyz.com .This will solve your problem probably.

Related

Ionos domain Redirect "example.de/xxx"

I am currently having some struggle with my company-website.
I have many Domains bought on ionos and we used to have a Wordpress website on our domain "example.ch". We also have the domain "example.de" which redirected to the first domain.
Now, I switched the domain from wordpress to webflow last month. Everything seems to be fine,it is now shown the new Website content which was made with webflow.
Also, the "example.de" domain gets redirected to "expamle.ch" - but not the sub-pages.
For example, I would like to redirect "example.de/about-us" to "example.ch/about-us".
I have no Idea how to solve this Problem, does anyone have a Hint for me?

Github pages URL keeps redirecting to old, deleted custom domain

i host my jekyll blog on github and used to use a custom apex domain for it and that worked just fine.
Yesterday i wanted to discontinue the domain and go back to the standard .github.io adress, so i deleted the DNS Entrys on Namecheap and the custom domain entry in the github repo settings under "Pages" (also made sure the CNAME file is gone, i even deleted the whole repo and set it up from scratch) but still the .github.io Adress redirects to my old custom domain and shows a 404.
Is there a way to solve this?
I can think of trying to assign a new custom domain, but i dont have one right now and just want to use the standard domain for now.

After setting up my own domain on Github Pages, I get an InvalidDNSError

Phenomena
After setting up my own domain on Github Pages, I get an InvalidDNSError.
The following message will appear
"Both www.example.work and its alternate name are improperly configured
Domain's DNS record could not be retrieved. For more information, see Learn more (InvalidDNSError). We recommend you change this to a CNAME record pointing to username.github.io."
Expected value
I want to publish a website using github pages on my own domain.
From your question, I assume that you are added www.example.work as custom domain in the github pages section and you might be missed the DNS settings part.
After adding custom domain in github pages, you need to setup a CNAME and 4 A record under the DNS settings of you custom domain.
you can find the detailed steps here in the official documentation of github.
You need to change your domain DNS to CNAME and try again.
as a Name you type www and in the target URL form, GitHub link.
I ran into this as well. After double checking the DNS with dig and continuing to get the same error, I removed the custom DNS on the GitHub Pages Settings form (using the "Remove" button) and then re-added it. That cleared the error for me.

How to remove custom domain from github pages

I integrated a custom domain from namecheap.com but now when I am trying to do default github pages hosting this domain name is coming (anuragportfolio.me) in between the full domain name. Previously it was coming as https://anurag30112003.github.io/Portfolio.github.io/. How to remove it or restore to default?
You need remove anuragportfolio/anuragportfolio.github.io repo that include the cname.

How do I set up a domain name to redirect to another URL and then check referrers from that domain?

I'm running a print campaign and have bought a specific URL to try and measure the efficacy of that advert.
I'm using cPanel and Google Analytics.
I want people to type in the new, advert specific URL and be redirected to my actual, live domain name and I would like it to show up in Google analytics as a referrer so I can track how many people visit that website address.
I haven't a single idea how to do this properly. i've set it up as an addon domain in cPanel, and have also set it to redirect to my main URL from within cPanel, but at first glance in "real time" and "traffic sources" it just says "direct", but I want it to show this URL.
So to sum up, I want people to type in a URL, it then redirect and for it to show up in analytics as a referrer, by name. Thanks in advance!
I've done it, and here's how I did it:
I set the domain name up as an addon domain on my cpanel account.
Then I created a .htaccess in the root of that subdomain, with the following content:
# Permanent URL redirect
Redirect 301 / http://www.DomainName.co/?utm_source=Domain-Name.co.uk&utm_medium=mediumName&utm_content