Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6843839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:18:04+00:00 2026-05-27T00:18:04+00:00

I am trying to setup rewrite rules for my site in iis 7 with

  • 0

I am trying to setup rewrite rules for my site in iis 7 with the URL Rewrite module. If the site name is “WonderfulWidgets”

I want it to always be http://WonderfulWidgets.com.
NOT: wonderfulwidgets.com
NOT: WONDERFULWIDGETS.com

I also want everything after WonderfulWidgets.com to be lower case.
IE WonderfulWidgets.com/best-widgets.

I have accomplished the lower case url rewrite and I have also made it so it will remove any leading www before WonderfulWidgets.com

My problem is my lower case URL rewrite lowers the domain name too. I need help writing the CamelCase domain name that works with rewriting everything else as lower case.

Here’s what I have in my web.config:

<rewrite>
        <rules>
            <rule name="CanonicalHostNameRule1">
                <match url="(.*)" />
                <conditions>
                    <add input="{HTTP_HOST}" pattern="^WonderfulWidgets\.com$" negate="true" />
                </conditions>
                <action type="Redirect" url="http://WonderfulWidgets.com/{R:1}" />
            </rule>
            <rule name="RemoveTrailingSlashRule1" stopProcessing="true">
                <match url="(.*)/$" />
                <conditions>
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                </conditions>
                <action type="Redirect" url="{R:1}" />
            </rule>
            <rule name="Default Document URL Rewrite" stopProcessing="true">
                <match url="(.*?)/?Default\.aspx$" />
                <action type="Redirect" url="{R:1}/" />
                <conditions>
                    <add input="{URL}" pattern="WebResource.axd" negate="true" />
                </conditions>
            </rule>
        </rules>
    </rewrite>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:18:04+00:00Added an answer on May 27, 2026 at 12:18 am

    DNS names are generally treated as case insensitive, and so most (all?) web browsers display the domain name in all lower-case in the address bar. To my knowledge you cannot change this behavior via changing what you return in your HTTP response.

    From RFC 4343:

    According to the original DNS design decision, comparisons on name
    lookup for DNS queries should be case insensitive.

    From Wikipedia:

    Domain names are interpreted in case-independent manner.

    The browsers all seem to prefer lower-case presentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to setup a mod rewrite rule to change urls like: http://www.site.com/play/4435
I'm trying to setup a PHP website in IIS 7.0 with URL rewriting enabled
I'm trying to setup some rewrite rules for a new Umbraco website we have.
Alright, I'm just trying to setup a simple rewrite rule for a site. First
I am trying to setup a URL redirect for a Q&A site I am
I'm trying to setup a private beta for a site that I'm working on.
I have all my rewrite rules setup and working in .htaccess but I need
I'm trying to setup a rewrite rule and I need it to apply to
I'm trying to set up a rewrite rules for a website, but there is
I am trying to achieve a custom URL structure with Wordpress. Basically, my site

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.