Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I host different version of my static website using git branch as the subdomain or prefix ?

Vinay Nair April 5, 2017

Right now I see that <accountname>.bitbucket.io  points to my master branch.

Do I have the ability to point different versions of the web site with /master being the default?

For example 

<branch name>.<account name>.bitbucket.io 

or

<account name>.bitbucket.io/<branch name> 

 

Thanks 

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2017

Hi Vinay! What you can do is to place each of the versions in a repository subdirectory. For example:

  • https://<accountname>.bitbucket.io/subdir1forproject1
  • https://<accountname>.bitbucket.io/subdir2forproject2
  • https://<accountname>.bitbucket.io/subdir3forproject3

Each project sub-directory would act as a self-contained website with its own index.html. For more information on how to do this, you can read the section "Hosting mulitple projects under a single website" at Publishing a website.

Hope this helps :) 

Ana

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events