Redirect loop to old URL on aspx site - asp.net

I inherited a site that worked on the domain.
Hosted on a plesk server from GoDaddy.
I placed a new site on oldguard.org which is hosted on ionos (formerly 1and1) and is working fine as is...you can see it at https://oldguard.org.
I wanted to take the old site that use to be on oldguard.org (current plesk site) which I can't not get to load at all, and place it on a new domain http://demotoga.com.
I have checked the servers with the domains and everything seems to be pointing in the right directions. However, when you go to demotoga.com, you get redirected to oldguard.org which is hosting the new site. For some reason, the old site (plesk location files on Godaddy servers) will not load on demotoga.com no matter what I do. It just keeps redirecting to Oldguard.org.
I believe the problem lies in the web config file for the hosting files that are for the old site which use to live on oldguard.org but cannot locate why the site continues to redirect. Shouldn't the site appear on demotoga.com if everything matches up?
I've looked around and around and cannot find where it points to the oldguard.org URL. What other Information is needed to solve this issue? Happy to provide any coding or give additional information just not sure what is needed to solve this issue.
Full web config code can be found here:
https://www.oldguard.org/wp-content/uploads/2018/12/oldguard-oldwebconfig.pdf

Related

All my Kentico live sites 404 and the previews do as well

I created a site in Kentico 12 and using the live viewer was working fine. Now its started 404ing every time I try to go to the site either by the URL: localhost:8080/Kentico12_[sitename] or by viewing the site through the live site feature. I a new site and it does the same thing. Additionally, page preview 404s as well. I have tried changing domain alias' and URL patterns but it doesn't seem to work. If anyone has a solution or some useful documentation to point mee toward that would be appreciated.
I can get into the back end of the site no problem by going to http:localhost8080:/Kentico12_Admin
I can reinstall Kentico 12 if needed but would rather avoid that.
Reinstalling is not the answer. Make sure you have the site properly setup in IIS first. A simple setup is to set the root of the site in IIS to the root of your MVC site. Then under that main site, create a virtual application and set that to the root of the CMS directory and call that virtual application "cms".
Then navigate to localhost/cms and you should be directed to the Kentico login page. Once you've logged into the Admin interface, update your site's domains. The Site domain name should be localhost/cms. The Presentation URL should be http://localhost.
If after you've made those changes and you're still getting 404's we'll have to look into other possible issues maybe in your web.config.

Browser ignores the url path on the first load

I have a Wordpress site that is migrated to a new server. Along with the migration, it now also has a subfolder /en which is a different version of the website targeted for international audience. The problem I am facing is that if I try to load the site example.com/en, on the first load it redirects to example.com. But if I load example.com/en on the second try it goes to the subfolder website. And it is browser specific. I have this problem on Chrome and Safari but not on Firefox
I have already tried clearing the cache in the CMS level and also on the browser, this hasn't helped in any way. Could it be because of DNS switching from older server to the new server?
Thanks
Here are some ideas on how to find the root of the problem:
Check the site from a different network / device to make sure it's not the DNS cache
Check the .htaccess file of the server, maybe theres a misconfiguration
Use a site like this one to trace the redirect
If nothing helpes you could just wait a few hours, maybe the DNS servers take some time to update all the settings.

Steps to redirect url of website to wordpress site in sub folder keep same url with IIS server

I have searched this thoroughly, but can not fine the solution for IIS 7.
My client has an active website hosted on an IIS 7 server. I have created an WordPress website in a sub-folder of that directory.
Example: clientSite.com ~ clientSite.com/_dev/
I am looking for the steps to point the entire site to _dev folder, and be fully functional but not have it show the redirect. In other words, the _dev/ never shows in the site path, even though all pages and posts of the site are in the clientSite.com/_dev/ path. Essentially, I need to strip the _dev from ever being seen.
I have seen this done with Apache servers, but have not found anything on IIS server redirect cloaking.
The purpose for doing this is to have the site switched to the dev site until I can change the files and database to the original site url, then turn off the redirect.
You help is greatly appreciated!
Maybe this description can help you?
appcmd set config /section:httpRedirect /exactDestination:true | false

Add www prefix to URL

I have an ASP.Net MVC 3 Website hosted on a shared Windows hosting package. I wish for my site to automatically add a 'www' prefix to all my site pages when the user does not type it in, ie, mytestpage.com redirects to www.mytestpage.com.
I have browsed extensively through Stackoverflow and other Internet sites to find a solution to this, but to no avail. The solutions given are to either configure IIS itself, however, I do not have access to IIS as I am using a shared hosting package.
Others have said to add the prefix via the web config file IIS7 URL Rewrite - Add "www" prefix however this seems only to work with IIS 7.
Is there any other way I can achieve this?
Your help is greatly appreciated.
Thanks.
On my solutions I do a check on Application Start whether the request has www or not. If not, I redirect to www.
And all my links are relative, of course.

Wordpress Multisite Not Working after Migration to New Server

I have a Wordpress Multisite which was working fine until I migrated the instance over to a new physical server.
The funny thing is that The instance itself is fine: I can get to everything except one of the sites. I cannot get to it's Admin section either, both the individual site and it's admin section come up as blank white pages. But none of my other sites do which I find rather weird.
It's not a database connection issue. I don't believe it's an .htaccess issue because i just copied over the same .htaccess file from the server that the whole instance was previously working on.
The only thing I can think of is that the Drive that Wordpress sits on is now different (D: now as opposed to E:).
I have mod_rewrite enabled and like I said all the other individual sites are working along with their individual admins.
I moved from Windows 2003 server to a Windows 2008 server and they are both on Apache Web Server.
Anyone else have the same problem or know of a way to remedy this?
A blank white page is a php error.
Check your error logs. That one site is using a plugin or theme with a conflict.

Resources