Your site is published at differentusername.github.io

I made my repo Ahmed3wwad.github.io
but when i enable github pages it gives an old repo page i already deleted as shown


i tried to disable pages and delete repo and re create everything but hopeless.

How to disable that old name forever i want to use a new one as my current repo

Your github.io subdomain will always be your username, so for you it’s ahmedkawwad.github.io. To publish a user page your repository name must exactly match that domain. The only way to change that domain is to change your username. Or you could use a custom domain.

All other repositories with Pages enabled will be published in a subdirectory under that domain, like you see here.

2 Likes

so it’s not depending on the repo name , oh sounds i miss understand things here , thanks for clarification.

1 Like

or maybe you can create an org for a specific name, like AhmedKAwwad-tutorial, this way, when you enable that GitHub Page, it’s entirely a new name, the name that you want, plus, you can create more, so you don’t need to change your name when you want another one for the GitHub Page

1 Like

I didn’t get the way , you mean create a new account with another name like AhmedKAwwad-tutorial , or you mean i create new repo ?
incase you mean new account , i got it okay .
incase you mean new repo , then it will be published on AhmedKAwwad.github.io/AhmedKAwwad-tutorial/.
That’s why i am stuck with the user name at the published url.

for example, I created a GitHub Org,

if I will be creating a GitHub Page for that Org, it will be as if it’s another user,

so that will be

xkcph2017.github.io

so, in case you want another separate GitHub Page, that can be done through GitHub Org, without creating another user

1 Like

Oh nice trick , thanks for this one :grin: