Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Is it because am using the following rules
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>
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
Is it because am using the following rules
bah sorry this
Adding this rule works now
not sure if this is the best solution but looks like this is working for me
is working on a reply...