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

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

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.

Redirect loop to old URL on aspx site

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

I uploaded my wordpress site to the web and pages link to localhost

When i uploaded my WordPress site to the web. I clicked a page from the menu and it redirect to localhost.
And i uploaded my hole new site to the web and my theme does not change?
Any ideas?
Thanks,
You need to run a search/replace on your database to replace the local domain with the live domain. Until you do that, all links on the live domain will redirect to the local domain.
This is a tool that can do that:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
To use this, unzip and upload the directory to your web hosting root, and then visit newdomain.com/your-directory-name/index.php in a browser.
Back up your database before running this.
Delete this folder after you are finished as it is a major security issue if left there.
More detailed instructions are on that page.
More information on migrating a WP installation can be found in the codex:
https://codex.wordpress.org/Moving_WordPress
I don't understand your question about the theme. You'll need to provide more details on that.

Wordpress - after upload on server 404 on all pages, no css

I have developed a wordpress based site using xampp 1.8.3. On my local machine all is wordìking fine. On the server I am using php 5.4.12.
On the server I copied the site on a subfolder name site, wich is the same subfolder name I had in xampp/htdocs. Then i changed all occurances of localhost to mydomain.com with the searchreplacedb2.php script (http://interconnectit.com/products/search-and-replace-for-wordpress-databases). I am confident that the tool is working properly and the issue does not depend on it as I have used it several other times with succcess.
Therefore since on my local machine the site was in localhost/site, on the hosting server is on mydomain.com/site.
The proble is that accessing the site home page produces a wordpress managed 404 page with no css being loaded. The title, menu and other site specific text is displayed, therefore the db is being read correctly. Trying to access any page other than the home page gets a webhost managed 404 page. This happens also if I try to access page through non symbolic urls, ei. mydomain.com/site/?page_id=5; therefore it is should not be a redirection issues.
what can be the issue? How can I proceed in troubleshooting it?
Thanks, in advance for your time.
You need to double check everything, first:
Flush the rewrite rules by visiting settings->permalinks then try your pages. Then try:
List item login to phpmyadmin for each domain, check out the database... options table... verify the "siteurl", and "home" columns. make sure they match the respective domains. Then try:
List itemCheck the DNS zone template. Could very well be possible DNS conflicts.

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.

Resources