Replacing IIS rewrite rules in web.config transform

As I didn’t have any rewrite rules in my main web.config, the Replace transform didn’t work. I successfully used the Insert transform, as below: <system.webServer> <rewrite xdt:Transform=”Insert”> <rules> <rule name=”CanonicalHostNameRule1″> <match url=”(.*)” /> <conditions> <add input=”{HTTP_HOST}” pattern=”^www\.mysite\.com$” negate=”true” /> </conditions> <action type=”Redirect” url=”http://www.mysite.com/{R:1}” /> </rule> </rules> </rewrite> </system.webServer>

Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]

Change <serviceMetadata httpsGetEnabled=”true”/> to <serviceMetadata httpsGetEnabled=”false”/> You’re telling WCF to use https for the metadata endpoint and I see that your’e exposing your service on http, and then you get the error in the title. You also have to set <security mode=”None” /> if you want to use HTTP as your URL suggests.

Allow anonymous authentication for a single folder in web.config?

The first approach to take is to modify your web.config using the <location> configuration tag, and <allow users=”?”/> to allow anonymous or <allow users=”*”/> for all: <configuration> <location path=”Path/To/Public/Folder”> <system.web> <authorization> <allow users=”?”/> </authorization> </system.web> </location> </configuration> If that approach doesn’t work then you can take the following approach which requires making a small modification … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)