Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • JoskerVemeulen 25 posts 146 karma points
    1 week ago
    JoskerVemeulen
    0

    UrlRewriting in Umbraco 8

    I'm trying to setup a robots.txt. Where do i config the UrlRewriting in Umbraco 8. Can't seem to find it.

    Thanks!

  • Claushingebjerg 800 posts 2039 karma points
    1 week ago
    Claushingebjerg
    0

    Int the Web.Config i would think.

  • JoskerVemeulen 25 posts 146 karma points
    1 week ago
    JoskerVemeulen
    0

    Those are IIS rewrite rules. In V7 there was a ~\Config\UrlRewriting.config But i'm looking for a V8 solution.

    Thanks

  • David Brendel 743 posts 2808 karma points c-trib
    1 week ago
    David Brendel
    100

    Hi Josker,

    The UrlRewriting was removed. Use the IIS rewrites instead.

  • Warren Harding 36 posts 79 karma points
    1 week ago
    Warren Harding
    0

    Make sure you have this installed for IIS - https://www.iis.net/downloads/microsoft/url-rewrite

    Search the web.config file for: IIS rewrite rules

    And add something like this:

    <rewrite>
          <rules>
            <rule name="LogoutRewrite" stopProcessing="true">
              <match url="^Logout/?$" />
              <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
              <action type="Rewrite" url="/umbraco/Surface/LoginForm/Logout" />
            </rule>          
          </rules>
        </rewrite>
    
  • Warren Harding 36 posts 79 karma points
    1 week ago
    Warren Harding
    0
    • that doesn't help with the robots.txt file though sorry, just a different example
Please Sign in or register to post replies

Write your reply to:

Draft