I've seen this question before but can't find a good answer for it.
I have an ASP.NET website using FormsAuthentication, it has some anonymous and protected parts. Now I publish this on a development machine connected to the Internet, I only want testers to have access to this website. So outsiders cannot see anything of the website, not even the formsauth login screen.
What I want is like a .htaccess popup that asks for a username/password, how can I accomplish this?
Install Helicon Ape free and put .htacces and .htpasswd files in the root of the site you are trying to protect.
Related
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.
I just took over a website for a client. I can access the wordpress backend to build and manage the site, but when I log into GoDaddy is says nothing about being hosted. Can anyone give me insight on this topic?
Sounds like a situation where you might FTP in an upload the files that way. See if it has FTP support.
If so, download Filezilla (freeware) and login to the IP address with your username and password for the site. If you get in, you can upload and overwrite files that way and they should be live instantly.
I also recommend calling or using the online chat function of GoDaddy. They can probably tell you how to manage the site.
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.
Our main site (www.example.com) is hosted internally on IIS/ASP.NET servers but we've recently created a blog, which is hosted externally on a Linux/Apache configuration (www.exampleblog.com).
At the moment, we've managed to map the blog to a subdomain of our main site (blog.example.com), but we would prefer it to be mapped to a subdirectory (www.example.com/blog) instead.
Is this possible and, if so, how can it be done?
Well this depends, but let me consider your blog is been developed on PHP.
Mainly you need to do the following :
Install PHP on you Windows box.
Configure and active PHP in IIS.
Create a folder in you website maybe you call it blog.
From the IIS turn this folder to an App.
Well and that's it.
Note: Am not sure what platform you are running in your blog but basically the main idea is to configure the windows box to run the other site and if it is php you would find many examples about that.
If you have another web server (Apache) behind the blog site, the only way is a redirect from www.example.com/blog to the other web server. You can also use a frame containing the blog site (which is located under another address) so the user doesn't see the other address in the address bar of his/her browser.
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.