I want to set up domain with multi-slash for site root node, but it is not allowed by Umbraco. e.g.
a.com/en/uk (example only). via Manage hostnames menu
The reason is that I have multi-lingual, and multi-domain sites, each of which is a root node. Each domain has specific region site. version 4.11
Any idea?
Update
It allows only one slash in the domain. Why does it not allow more than one slash? I have changed it on the Domain table directly, It seems working. Is there any implication on this.
You are right, the domains settings in Umbraco are specifically for the root domains.
However, if you think about how Umbraco allows you to organise your content structure, you could create a homepage with the root domain (e.g. yoursite.com) and then have a page for en/ and a page beneath that for uk/, in other words the UK homepage.
You could then use some server side logic to catch all requests to the root page and 301 redirect them to the UK homepage.
Related
I have registered 2 websites (say source.com and target.info) but only one (target.info) is hosted. I could redirect source.com to hosted target.info/source but I would like to display source.com in the address bar rather than the physical URL target.info/source or subdomain source.target.info. Is this possible, knowing that I don’t have a .htaccess for source.com since it is not hosted?
I tried to redirect source.com to target.info/source on my registrar account but then I get target.info/source in the address bar. Ideally I would like to have source.com concatenated with the file names, but source.com alone would be fine.
An alias domain might be close to what you are looking for but you may find it called something different if you use a different hosting provider. You will however, still need to point the domain to your hosting provider (in the case of hosting providers using cPanel whose documentation I have linked this would involve changing the nameservers at your registrar).
Form the docs:
Domain aliases are domains that you own, but which do not contain any content. Instead, they point to the contents of another domain or subdomain on your account. This is useful, for example, to hold a domain that you will later sell, or to redirect traffic to another domain.
I have a rails application and was wondering how I can route or reroute a specific path to one specific root domain when there are two.
My application has two domains for example: www.example.com and www.sample.com
I have a path called '/submissions' the path can be accessed from both domains because the application works on both domains. So if user goes to www.example.com/submissions and www.sample.com/submissions then they access the same form.
My problem is that I want a user to always access it through www.sample.com/submissions . So if they go www.example.com/submissions I need to re-route it to www.sample.com/submissions
I am not sure if I should use some sort of constrain on my route in the route.rb file.
Any help would be great!
I have an old domain for a company that has merged with another company and they want to decommission the old site and redirect traffic to the new domain. OldCompany.com will now point to NewCompany.com. However, to keep their SEO rankings we also want to map the pages from the OldCompany.com domain to the corresponding pages on NewCompany.com.
I know it's possible to setup Rewrite Maps in IIS (I've done this), but if the OldCompany domain is now pointing to the NewCompany web server, but the site itself was not migrated, will I still be able to use rewrite rules in conjunction with redirects to point OldCompany.com/about.html to NewCompany.com/subDirectory/about.aspx?? Do I need to setup these pages in order to accomplish this? Will Rewrite rules work without the pages from the originating site in place?
Right now I am able to setup a HTTP Redirect for the entire OldCompany.com domain by just creating a new site in IIS and using the HTTP Redirect to do this. What I really want is the more granular solution outlined above, so that people get to the pages they are looking for and not just the new site's homepage.
You should not do the redirect with new site (in application level). This would just break any existing incoming links. Better approach is to redirect old domain (with the whole url path & query string that you may have) with 301 redirect and map all relevant old urls to urls in the new site.
Usually it's done with multiple steps:
Tell Google Webmaster Tools the new domain address (in case you use that)
Create IIS rewrite rule to redirect (with 301) old domain to the new domain, preserving path & query string info
Create IIS rewrite rules (in your new site) to map any old url to the new structure, with permanent redirect (301) or redirect to same other page when user can move forward, if exact page is not found from the new structure.
This will tell Google that the URLs have changed and point to the new location.
I got problem trying to set the URL of my site. The project is based on mvc azure.
Usually azure has URL like: xyz.cloudapp.net So when i set my site live i added a domain that points to the azure project. www.xyz.com.
The issue is that if i try to click on 'Contact' or 'About' buttons i want the URL on the browser to show up as www.xyz.com/about and www.xyz.com/Contact. But whenever i click on the about or contact button, the browser URL still shows as www.xyz.com.
I have over 50 pages in my site however, Google is only indexing it as one. Can some one please tell me how can i get this URL showing the pages i am routing too.
Use domain control panel, can routing with cname or A record. Use Url routing "/Contact" make sure "/"
For A record, use Azure Production VIP and enter the two recording. one hostname null(xyz.com), two hostname www(www.xyz.com). May also be a name you want to(my.xyz.com).
For cname, The only difference, dont use VIP. Instead use xyz.cloudapp.net
Use domain control panel for all these processes.
Sample Azure Url
Sample Cname Url
DNS Check see end of document WWW A Record
I'm working on an ASP.NET MVC Multi Tenancy app.
Right now I managed to create dynamic subfolders, for instance some one registers with username "bob" and gets the following website:
domain.com/bob
My next goal is to provide subdomains: bob.domain.com instead of subfolders.
I found out that it's very complex to create dynamic subdomains with ASP.NET and DNS WMI. Is there a way to tell the server that it has to redirect/rewrite from bob.domain.com to domain.com/bob ?
In regards to routing based on subdomain, you should reference the following SO post.
**Sorry, I normally don't like to just link to an answer, but in this case, I don't want to take the credit from the original poster for the solution*
EDIT
Check out solution 2 to follow up on my comments below as a working example. You can ignore the ISAPI rewrite as the MVC routing engine would do this for you given the above solution from SO. Below is a snippet that you might find useful:
Setup DNS Server
Add the following entry into your DNS
server and change the domain and IP
address accordingly.
*.example.com IN A 1.2.3.4 Setup the Web Server
We are assuming that you already have
a web site created for your main site:
www.example.com. So let's just double
check to make sure it will be able to
accept all variations of the
subdomains.
* Open IIS Management Console and select your web site.
* Right click on it and select Properties.
* Click on Web Site tab.
* Click on Advanced button.
* Make sure there is one entry under the Multiple identities for this
Web Site with Host Header Name field
blank. This entry will intercept all
requests that comes to this IP
address.
* Make sure the IP address is only used by this web site.