IIS 6.0: How to add a site/app to a site taken over by WordPress? - wordpress

In my new job, I "inherited" a website that is completely implemented by WordPress. That is, every URL that starts with that http://www.myjobdomain.com is somehow redirected/generated by WordPress and, if a page does not exist in that location, it provided a 404.
I am now trying to add a "side site" to that domain, that is a web app (or a few html pages) that are outside that WordPress-based site.
Is there a way to accomplish that in IIS 6.0?
I know that in Apache I can play with .htaccess and redirect/rewrite rules to accomplish what I want. But in IIS 6.0 I could not find any way to do this.
If such a way exists, how would I go about to this? Any instruction or guidelines would be sincerely appreciated.
P.S. In my IIS Manager, I could not find any tabs alluded to by this answer.

To accomplish what you want, all you need is to right-click your site in IIS Manager and select Add Application....
Unless your site is already configured to relay all control to WP. In such case, you may want to look into Microsoft's URL Rewrite module/extension.

Related

How can i create a custom CSS for a website hosted on Cloudflare

I want to make a website hosted on Cloudflare more beautiful by adding more css style to it and correcting some layout of some pages that are not good enough.
The challenges i'm having is that i don't know where to start, I logged into the cloudflare settings, theme settings but i didn't see the css of the pages i want to correct. I tried googling it and i couldn't find much help, I only notices that i can add CSS through Add CSS app but i don't know where or how.
Please help me with a link to something to read on how to customize cloudflare pages or tell me how to start it please.
Since you mentioned the website is hosted on Cloudflare, I'm assuming it's on Cloudflare Pages. You can't edit CSS through Cloudflare. Your code will be in either Github or Gitlab connected with your Pages project. Once you find your code repo, then only you can edit. Any changes should be updated on your Pages.
If your website is not on Pages, then it is on a web server hosted somewhere else. You'll need access to the server in order to make any changes. See the DNS records of your website's domain to find the IP of the server if you're not sure where it is hosted.

Web application in Wordpress URI

Is it possible a especific URI in Wordpress call an web application (Example: https://mywebsite/my-application) and the rest of the site keep working as a ordinary wordpress?
If it is possible, how can i do it?
I have found no clue in anothers forums so far.
You just need to create the folder my-application at the root of the WP install, and put your application inside this forlder.

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.

How to mask outbound URL in ASP.NET MVC?

I'm trying to redirect and mask all users from a page at my ASP.NET website to another website not using ASP.NET. ie, from www.site.com/site2 to www.site2.com. I want the url to be masked, so that users see www.site.com/site2 in their url rather than www.site2.com, and for subpages like site.com/site2/home to also work. My website is hosted on Microsoft Azure, and I would ideally like to redirect to a completely different page, but could also redirect to another Azure page.
However, I've been getting a bit confused with terminology. What methods can I use to go about this, and is there a specific search term I should be using? There are a lot of resources that discuss doing the opposite (masking part of your website as another site), but fewer masking an outward site as part of your site.
So far, I've found a couple of possible methods - Virtual Directories, and URL Rewrite.
For Virtual Directories, I found this useful blogpost: http://blogs.msdn.com/b/kaushal/archive/2014/04/19/microsoft-azure-web-sites-deploying-wordpress-to-a-virtual-directory-within-the-azure-web-site.aspx
But it doesn't quite work and I'm finding it difficult to find any more resources about Virtual Directories.
I also found URL Rewrite, which looks pretty cool: Mask URL to subdomain using IIS
However, they also mention that URL rewrite only works on the same website, which is not the case here.
Will either of these work to mask site2.com as site.com/site2?
I was not able to do exactly what I wanted to - simply redirect traffic from site.com/site2 to site2.com (and let users see site.com/site2 in the url). URL Rewrite does not do this, but it does do the opposite (map server content at site.com/site2 to user sees site2.com).
Virtual directories are close enough though. I'm actually storing the content at site.com/site2, so users see that as the URL. If I want users to alternately see site2.com if they go there, I can use URL Rewrite.
The first blog post I linked (http://blogs.msdn.com/b/kaushal/archive/2014/04/19/microsoft-azure-web-sites-deploying-wordpress-to-a-virtual-directory-within-the-azure-web-site.aspx) actually is spot on with how to set up Virtual Directories.
One of the problems for me following that post was the Site name and destination URL of the publish settings.
Basically the extension from Azure (outlined in red) matches the URL from publish settings, while the site\wwwroot\wordpress from Azure (green) matches the Site name from publish settings.

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