KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to redirect all www traffic to non-www traffic I have copied this into my web.config <system.webServer> / <rewrite> / <rules> <rule name="Remove WWW prefix" > <match url="(.*)" ignoreCase="true" /> <conditions> <add input="{HTTP_HOST}" pattern="^www\.example\.com" /> </conditions> <action type="Redirect" url="http://example.com/{R:1}" redirectType="Permanent" /> </rule> per this post How to redirect with "www" URL's to without "www" URL's or vice-versa? but I got a 500 internal server error.
Tags (comma-separated)
Save Edits
Cancel