Hot answers tagged

5

This won't work in an HTML page, so is it possible to configure IIS 7 to have the #include directive work in both HTML and PHP pages? Is there a better way to do this period? Something that might simplify things for you overall would be to configure IIS to use PHP code inside .html files instead of .php files. Then you'll be able to use PHP code directly in ...


4

One good and easy way to prevent execution of certain file extensions under an specific folder is to use the "Request filtering" feature of IIS to prevent accessing them altogether. Go to the folder in IIS and in the "File Name Extensions" tab of the "Request filtering" feature, add "Deny file extension" rules for the file extensions that you want to lock. ...


4

No. I run several sites like this. The binding determines which app takes the requests, and each app can only have one app pool. An app pool can use multiple processes (a web garden) but that is completely unrelated to wildcard domain names (even a single domain gets split across multiple processes in this scenario). An app domain (a security construct ...


3

It is not the perceived depth of directory that google factors into rankings, urls with so called deep directories can be indexed and ranked just as shorter ones can. http://www.searchenginejournal.com/url-structure-seo/11801/ Though Google does recommend you keep urls as simple as possible. https://support.google.com/webmasters/answer/76329?hl=en


3

I've been able to reset a lot of my site's values using appcmd, but I had to dig into specific configurations I wanted to change, which I'll describe a bit below. I know for sure that this works with IIS 7, but I'm not 100% certain whether it passed on to 7.5 so YMMV. appcmd isn't in my cmd path on any of my installations (though these machines are 2k8sp2) -...


3

Yes if you allowOverride and then add a new web.config file in the folder you want to disable. So in your parent folder web.config should look like this. <configuration> <location path="." allowOverride="True"> <system.webServer> <directoryBrowse enabled="True" /> </system.webServer> </location>...


3

The problem you're having is solved with CORS: The Cross-Origin Resource Sharing standard works by adding new HTTP headers that allow servers to describe the set of origins that are permitted to read that information using a web browser. Additionally, for HTTP request methods that can cause side-effects on user data (in particular, for HTTP ...


3

If all you are doing is moving the files on your file system to another location but want to keep the same URL structure, rather than setting up URL Rewrite rules you can change the physical path of your IIS website configuration. I will make the following assumptions: You are running website "mydomain.edu" from a physical location such as C:\inetpub\...


3

Yes, it will. The http and https version will be seen as individual pages and thus also create duplicate content. The solution is to use a 301-permanent redirect, which your code does. This will transfer the juice to the destination of the redirection, so you're good. Also, adding a canonical tag to indicate which is the prefered url is good practice. ...


2

Assuming that you want the uploaded files to be served as static content (or else you could just save the uploads outside the root folder of your application): Inside your root web.config (which can't be overwritten by users), use this (as suggested by Javier G., but with allowOverride=false): <location path="upload" allowOverride="false"> <...


2

You'll want to make sure you have the Microsoft URL Rewrite Module installed, and create a rule template as covered step-by-step here: IIS.net - User Friendly URL - rule template The other way to do this is edit your web.config file, as covered here (substituting your URL's under "The lines to modify...").


2

You need to create an A record for sqldb1234.db in your DNS area for GoDaddy. http://support.godaddy.com/help/article/2290/how-do-i-create-a-subdomain-in-simple-control-panel Once the A record has propagated you should be able to use the subdomain sqldb1234.db.mydomain.com in your connection string.


2

GoDaddy has a help page about web application trust level. It says that with ASP 4, you should be able to enable "full trust" with this directive in your Web.Config file: <configuration> <system.web> <trust level="Full" /> </system.web> </configuration>


2

Yes. Just create a new application with the desired sub path under the main site. The new application can be run under a separate application pool. Note that there may be fixes you need to make to the second application, because it is running with a sub path. If it generates any absolute URLs or server-relative URLs, they must be generated with that in ...


2

The design pattern you are using is called the "front controller" -- a central entry point for handling requests. Here is a website that shows how to implement that pattern with various webservers. Here is the configuration they recommend for IIS in the web.config file: <?xml version="1.0"?> <configuration> <system.webServer> ...


2

Is the SEO specialist right? Yes and no (or more appropriately, debateable). That said, the closer you are to the root domain (in your example example.com) the better. The lower down in the path you are, the less prominence Google will give to your page. So in your example: www.example.com/products/page_name/123 Is definitely the preferred way to do it, ...


2

Web Deployment Tool / msdeploy rocks.... if you are staying within same major version of IIS. However, I have seen significant headaches going from 7.x to 8.x.


2

The solution that we found to be the most simple and effective was a simple CSS and template hack. We are using our own custom template so modifying it was not a problem. In short, I hid the Edit bar and any other content manager features using a CSS file that only loads when on the main website (www.example.com), and provided a message on those pages for ...


2

You need to set maxAllowedContentLength, not maxRequestLength to up the allowed upload size for IIS. the former is the IIS request length limit, the latter is the ASP.NET request length limit. Also important to know is that maxAllowedContentLength is the length in bytes, whereas maxRequestLength is the length in kilobytes. See this question on SO for more ...


2

Missing a backslash \ after the last folder. Requested URL has a folder in it. entitialviridordahsboard Are you looking to goto d:\inetpub\webmail\entitialviridordahsboard\entitialviridordahsboard ??? Error is from the Map Request Handler Change image 4 forward from /entitalvirtidordashbord to 109.108.142.135 /entitalvirtidordashbord: 109.108.142.135


2

Check that the redirect hasn't been registered in the "Machine.config" file. IIS as we all know, puts entries in the local web.config for the application in question, however occasionally it put's entries in the machine wide "machine.config" Furthermore many .NET devs don't even realize there is a "machine.config" file As the name implies, any settings in ...


2

Assuming you're using the URL Rewrite Module, you can use the following set of rewrite rules in the web.config: <system.webServer> <rewrite> <rules> <rule name="ForceToExample.com" stopProcessing="true"> <!-- Match any path --> <match url="(.*)" /> <conditions> <!-- ...


1

When I do testing with security certificates, I often use the real certificate on the test machine. I configure the test machine with the real host name. Then I use my /etc/hosts (or hosts.txt) file to point the real domain name to the test box for testing a client. Doing this bypasses the need for generating certificates and making sure that all test ...


1

This topic can be quiet debatable as stated. However, there are 2 general rules. make the url simple understandable and relevant i.e site.com/shop/pens is much better then site.com/this/shop/sells/pens?id=123123123 make the step to get to the desired location as short as possible If you follow these two rules then regardless of if your url is "optimised" ...


1

First Method : Install web platform installer from: http://www.iis.net/downloads Find the urlrewrite and add to IIS, then you can find URL rewrite section in IIS. You can create a new rule or import from .htaccess file via URL rewrite. Second and Easy Method : Open IIS and select related website Go to errors section and find 404 error. Double click on ...


1

It worked for me with these settings Moved the complete DokuWiki installation on other machine Now IIS on HPV-SHSDEV1-01 points to DokuWiki installation at this location \co-lp-vmpfile2\SH_custom_applications\SH_Systems\DEV01\dokuwiki\dokuwiki Changed anonymous user's indentity to App pools identity Used UNC path instead of mapped drive path to locate ...


1

You either need an entry in the hosts file on your colleague's computer or a DNS record pointing to your computer. You can't do it based solely on the hosts file entry on your computer, because your colleague's computer doesn't (and can't) look at that file.


1

Each application pool can execute as a specific user to control this do the following: Click on Application Pools in IIS Manager Click Advanced Settings Find the Identity property and click the ellipsis Select the Custom Account radio button Enter the user name and password In step 5 be sure to include the domain name as in: MyDomain\UserName


1

try changing the rule to: <match url="(.*)%26(.*)" />


1

Have you considered creating a mapped network drive on the local machine that IIS is on (i.e. \NetworkShare mapped to drive letter "X:") with appropriate permissions and then create a virtual directory under your web mapped to the new mapped drive (X:).


Only top voted, non community-wiki answers of a minimum length are eligible