Connect Repo to subdomain and domain

Hi everyone,

firstly, thank you for offering a great solution with bitbucket.

I'm very new git/Bitbucket and still sorting things.

My question:

Is it possible to connect my bitbucket versions/account to my webspace (subdomain and domain) ?

My logic says that developing with a versioning tool and then publishing the website by hand is not the correct way.

I have a domain and a subdomain. Of course I'm developing on the subdomain, and when I'm finished I want to publish/redirect/deploy (or whatever it is called) to my main domain.

I've seen that it is possible to host a statis website on bitbucket, but thats not what I want, since I'm using PHP/MYSQLI and JS.

Also I've tried to set the cname record in my domain panel to but it ends up with a 404 error.

I would highly appreciate if someone could point me in the right direction, since this bitbucket service turns out to be the best finding of last couple of years :D

Thank you for any hints

Best Regards


1 answer

0 votes
Jason Worley Atlassian Team Oct 27, 2013

Excerpt from our documentation:

You may have multiple projects that you want to host from the same Bitbucket websites, you can do this by placing each project in a repository subdirectory. In this example, you would want to organize things such that you can point users to:




Each project sub-sirectory would act as a self-contained website with its own index.html.

Bitbucket is forgiving with regard to trailing slashes: a request to with result inprojectX/index.html being served (if such a file exists), regardless of whether the trailing slash is included in the URL.

Full details available here:

Hi Jason, thank you for your answer. Unfortunately I'm not lacking of resources.. I'm looking forward to control the different versions of my website with bb/git. Not simply host a static website.

Please correct me if I'm wrong here:

Develop Project on local machine >> push to bb/repo >> and then??? It sits on some webspace.. How can I deploy it when I'm finished.

It's wrong to put all effort in some version control and then publish it by pushing it MANUALLY on MY FTP - isn't it?

Best Redards


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

80 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you