Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 30, 2014 @ 16:12
    Fuji Kusaka
    0

    getting a default page in url

    Hi guys,

    Can anyone explain how i got a "default" page with every single page of my site? 

    To be more precise let says i have the following url 
    htpp://mywebiste.com/info

    I also have the following page 
    http://mywebiste.com/info/default

    This url with "default" should get me to my 404 page instead but this is not the case. 

    Any idea why am getting this issue here ?

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 30, 2014 @ 17:19
    Fuji Kusaka
    0

    Is it because am using the following rules

     
  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 30, 2014 @ 17:21
    Fuji Kusaka
    0

    bah sorry this

    <rules>
                    <clear />
                    <rule name="Rewrite rule1 for testrewrite" enabled="true" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{QUERY_STRING}" pattern="/umbraco/*" negate="true" />
                            <add input="{QUERY_STRING}" pattern="/umbraco_client/*" negate="true" />
                            <add input="{testrewrite:{REQUEST_URI}}" pattern="(.+)" />
                        </conditions>
                        <action type="Redirect" url="{C:1}" appendQueryString="true" />
                    </rule>
                    <rule name="Canonical host name" enabled="true" stopProcessing="true">
                        <match url="^(.*)" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{HTTP_HOST}" pattern="^www\.mywebsite\.com$" negate="true" />
                            <add input="{HTTP_HOST}" pattern="m.mywebsite.com" negate="true" />
                        </conditions>
                        <action type="Redirect" url="http://www.mywebsite.com/{R:1}" />
                    </rule>
                    <rule name="RemoveTrailingSlashRule1" enabled="true" stopProcessing="true">
                        <match url="(.*)/$" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        </conditions>
                        <action type="Redirect" redirectType="Permanent" url="{R:1}" />
                    </rule>
    
          </rules>
  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 30, 2014 @ 21:26
    Fuji Kusaka
    0

    Adding this rule works now

      <rule name="SEO - Remove Default" stopProcessing="false">
                    <match url="(.*)/default$"/>
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                      <add input="{HTTP_METHOD}" pattern="GET"/>
                    </conditions>
                    <action type="Redirect" redirectType="Permanent" url="{R:1}" />
                  </rule>      

    not sure if this is the best solution but looks like this is working for me

Please Sign in or register to post replies

Write your reply to:

Draft