I have an site, let's call it 'foo'.
I wanna have three contents.
1 site will be the landing page.
1 site will be contentA.
1 site will be contentB.
The domains must be:
foo.com (with landingpage)
content1.foo.com (with content1)
content2.foo.com (with content2)
All sites are a big project on firebase.
But when i deploy i cannot set target to subdomain (which is already configured).
How can configure this setup ? I want 3 contents on same domain, all hosted by firebase.
Related
I had a main domain example.com hosted somewhere else. I had created two subdomains of it app.example.com and link.example.com and successfully mapped these to firebase hosting. Before I deployed firebase hosting those work perfectly for dynamic links.
But after my first deployment those are not working and showing this error
https://link.example.com is not connected properly
Your Dynamic Links path prefix is not configured in firebase.json. Check your firebase.json configuration and try again.
I want my link.example.com to only work for dynamic links and app.example.com for hosting (it is for my web app). But in the Firebase web console, there is no option to set this behavior. Any one please tell me how to set one of my sub domain only for dynamic links?
I have my own domain i.e www.example.com, and I just connected with Firebase Hosting, however what I want is to deploy a website (using Flutter) for that domain and a different one with the following path: www.example.com/other, as you can see the /other should direct to another website that I have, is that possible throw Firebase Hosting? or do I need to have two domains one for each website
Firebase Hosting only deploys a single site in its entirety, using all of the content in a single folder, usually called "public" in your project. It doesn't really do partial updates scoped to a specific path.
You can certainly deploy multiple apps to one site. You will just have to make sure all of their content is added to that public folder for deployment as a unit. If you don't want to do that, you can certainly manage each site independently with a different hostname for each.
In our IIS server we created 3 websites, so under the folder Sites we have Default Web Site, Site1, Site 2. under Default Web Site we have many many applications and one of these applications called "Main"
Also we have 1 domain name like "http://www.ourdomain.com"
How can I do the following
If the user wrote http://www.ourdomain.com or http://www.ourdomain.com/main, then redirect to Default Web
Site/Main
If the user wrote http://www.ourdomain.com/Site1, then to show the content of Site1 and not an application inside the Default Web Site
If the user wrote http://www.ourdomain.com/Site2, then to show the content of Site2
Our Admin he used the HTTP Redirect and he put the url http://www.ourdomain.com/main so everything is redirecting to main
Also, is it possible to use this configuration site1.ourdomain.com instead of http://www.ourdomain.com/site1 ? and how if yes?
Forgive me for my question, I have no experience about how to work on these things in IIS
Option 1
To get site1.ourdomain.com you just need to set the host header in IIS to use this subdomain. Right click the site in IIS, click "Edit Bindings", either add or edit an existing binding to use the subdomain. I would strongly recommend against having three separate sites in IIS if those sites are subsites.
Option 2
Your other option would be to make the subsites areas in MVC in one project.
I have my Default Web Site setup in IIS with two branches under it
Default Web Site
- Site 1
- Site 2
When I open Site 2 as localhost/Site2 it redirects to localhost/randomText/Site2
and can obviously not find Site2
The requested URL is shown as /randomText/Site2
How can make localhost go to localhost/Site2?
FYI this was working till yesterday suddenly this changed.
suppose I have two domains
www.site1.com
www.site2.com
To publish them on the same IIS server I have created 2 virtual directories /site1 and /site2.
How can I associate every name with its own virtual directory?
Rather than set them up as virtual directories, set each site up as their own Web Site. Then edit the bindings of each Web Site, and specify the appropriate domain name for each site
Your question doesnt seem to make sense,
'How can I associate every name with its own virtual directory?' - what does this mean what do you mean by name?
Also you dont have to make 2 VD's for 2 websites. Just make 2 websites...and use one dns for each one.