domainA = old url,
domainB = new url
EE 2.5.5 website ‘domainA’ is being re-branded as ‘domainB.’ Bluehost has both domains on the account; ‘domainB’ is now the primary domain and ‘domainA’ is parked (going to be an Add-on that redirects to ‘domainB’).
Whenever we try to visit ‘domainA’ the browser redirects to ‘domainB’ - it’s the same site, same files, etc. - but the URL needs to reflect the new name. Nothing else is changing.
(Multiple) Bluehost techs have said there must be a redirect in the EE code and/or DB. I have checked and changed every instance of ‘domainA’ that I could find in:
CP Home -> Admin -> General Config
/sitefolder/expressionengine/config/config.php
The database, particularly exp_sites
Are there any other instances of the original url hidden in the code?
After completely emptying the server and speaking with my fourth (4th!) Bluehost tech today, we discovered that domain forwarding was active on domainB (rerouting it to domainA) in the GoDaddy account (the domains are registered separate from the web host).
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 want to redirect myapp.herokuapp.com to mydomain.com.
What I was able to achieve with company that I bought a domain from (lets call them X) is to add new CNAME, so a www.mydomain.com displays myapp.herokuapp.com and that is OK.
What I also want to do is to be able to access the app without the need to write www before the rest of the address. It was said to me that I should change A record within domain configuration, but X company does not allow it. What I can (and what they recommended) is to set and option in domain configuration called IP/URL/host redirect to myapp.herokuapp.com.
Changing this makes my website available under the mydomain.com without the need to write www before, but what it also does is it displays the website in a frame.
What should I do to achieve this? Is this a heroku thing, the X company thing or should I change something in the way my website can be displayed?
Typing www.mydomain.com displays the website correctly - without the <frameset><frame></frame></frameset> tags.
In the Heroku Dashboard "Domains and Certificate" section, add to your custom domains both domain names, "www.mydomain.com" and "mydomain.com".
Make your DNS target the "mydomain.herokuapp.com" in both records.
Check https://devcenter.heroku.com/articles/custom-domains for more information.
I'm the sysadmin of a web site that is being migrated from a URL schema of plain HTML files to a dynamic Content Management System.
As example the old URLS are like www.example.com/books/somefolder/book31Chapter23.html and the new ones are like www.cms.example.com/x?book=31
The site is hosted in two servers, one 'old' serving the static old URLS at the main domain www.example.com and one 'new' with the CMS at a subdomain www.cms.example.com.
Web servers are nginx and the CMS is written in yii (PHP) but this shouldn't matter conceptually for this question.
There are many URLS and only part of the content has been migrated to the new CMS, so we have three cases:
user requesting old URL of content that hasn't been migrated: in
this case the web server (nginx) serves the content from the 'old'
server.
user requesting new URL (migrated content): this is served
directly by the new server
user requesting old URL of content that has been migrated: the
request reaches the old server. There's a mapping list and we have
nginx do a temporaty redirect from the old url to the new url, so
traffic is redirected to the CMS in the new server.
So far this has been working and as new content is migrated the redirect mapping list is updated.
The problem is that I'd like the second server with the CMS to serve content as the main domain example.com and not a subdomain cms.example.com , that and also the temporary redirects seem to affect SEO for Google etc.
Ideally I want in the 3rd case to do a permanent redirect to the new CMS URL schema without using a subdomain, noting also that currently the CMS is hosted in a different server (I could merge everything in one if needed). Also for the 2nd case users would go to the new URL using the naked domain and not a subdomain.
How do I achieve this in the current set up (using nginx redirects, DNS or whatever is needed)? is there a better set up for migrating urls between two servers?
thanks!
I i have local server 192.168.1.40 and added subdomain in my client computer hotsts file like forum.mysite.com 192.168.1.40 then installed PHPbb on that domain, now when i trying to login as asmin it keep redirecting me out of admin interface. I realized that it must be cookie domain issue.
What cookie domain i need to set in this case? Currently its set to orum.mysite.com
If you use .mysite.com for the cookie domain it should work - note the leading '.' (period/full stop) at the beginning which should be present, that's not a typo.
If you still have trouble after that, try this KB article on fixing cookie settings
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.