DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

How to force lower case urls?

Sort:
You are not authorized to post a reply.
Page 2 of 2 << < 12





Growing Member





    Posted By Prasad Maduranga on 21 Feb 2021 02:57 AM
    It is not allowing me to post the code what I want. I tried several times. Anyway just check this atleast.

    IgnoreCase="False" .....

    i do have my own rewrite rules on the server, but didn't think that dnn implemented that site setting in that section. perhaps it saw that i have a section and failed to update it - maybe a feature or a bug. but i can certainly manually add it.

    also, your Imported Rule 1 appears in the email notification, but not in the posting on the site. 

    this rule is probably the secret sauce. thank you. i will post later my results.

     

     






    Growing Member





      Posted By tony bonn on 21 Feb 2021 11:20 AM
      Posted By Prasad Maduranga on 21 Feb 2021 02:57 AM
      It is not allowing me to post the code what I want. I tried several times. Anyway just check this atleast.

      IgnoreCase="False" .....

      i do have my own rewrite rules on the server, but didn't think that dnn implemented that site setting in that section. perhaps it saw that i have a section and failed to update it - maybe a feature or a bug. but i can certainly manually add it.

      also, your Imported Rule 1 appears in the email notification, but not in the posting on the site. 

      this rule is probably the secret sauce. thank you. i will post later my results.

       

       

      this episode has been interesting and frustrating, but i may have the matter resolved. the server's url rewrite module has an out-of-the-box rule for forcing urls to be lower case. it actually works, but with a penalty. when i try to save page name changes in dnn, it returns an error stating that http get is not allowed on this resource. so i disabled the rule on the server, made my name changes, but discovered that they remained lower cased without the rewrite rule. 

      unforutately, i have so much caching going on that i am not convinced that the change is enduring. so i will monitor it for the next couple of days to months to see if the conversion holds.

      the moral of the story is that the dnn feature may or may not work, but you can always create a re-write rule in the url rewrite module on the server. as of now i am able to name my pages with mixed case, eg About, and the url address in the browser shows /about, and the menu on the page shows About. so far so good. i need to make sure that this good fortune is not the result of lingering caching.

       






      Growing Member





        the story is not over. apparently some caching was in play. when i ran checkbot, it was able to go to a mixed case url. enabling the server rule fixed it. however, in a classic case of whack-a-mole, checkbot also penalized me severely for having redirected pages.

        so here is the way this needs to be supported, which is my next endeavor. 1. pages must be created with lower case names so that redirection is not required. 2. the menuing system must support mixed case names for aesthetic reasons. as of now, i don't know that dnn supports this need. maybe my 3d party theme has a menuing system where i can map the page url (lower cased) to a visual representation of it using an arbitrary name (mixed case).

        so as an example, i should be able to create a page named about, but have it display in the menu as About. the default behavior for menus is to take the page name, ie about, and then show it as about.

        You are not authorized to post a reply.
        Page 2 of 2 << < 12

        These Forums are dedicated to the discussion of DNN Platform.

        For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

        1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
        2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
        3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
        4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
        5. No Flaming or Trolling.
        6. No Profanity, Racism, or Prejudice.
        7. Site Moderators have the final word on approving / removing a thread or post or comment.
        8. English language posting only, please.

        Would you like to help us?

        Awesome! Simply post in the forums using the link below and we'll get you started.

        Get Involved