Copied to clipboard

Flag this post as spam?

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


  • Streety 358 posts 568 karma points
    Sep 27, 2013 @ 10:59
    Streety
    0

    Crazy default page error defaulting to index.aspx

    I have a umbraco 4.11 site I have a razor breadcrumb nav feature.I also have a URL rewrite (on IIS ) so that any requests to the root are directed to /home which helps with analytics et al.

    Here is the problem. When selecting the root Home node on IE and Safari it is diverted to "index.aspx" not /home as expected.

    Works fine on Firefox, Opera & Chrome.I don't have an index object to its captured by my 404 page.

    Any ideas where to start debugging?

    Here is the url: http://refreshwebsites.co.uk/

    Click on say "websites" then try and click the home node on the top left breadcrumb.

    It doesn't work in IE,Crazy!

  • Drew 165 posts 340 karma points
    Sep 30, 2013 @ 12:43
    Drew
    0

    I've tested it on IE and Safari - I get redirected to /home - so it seems OK to me.

    It could potentially be some weird local caching that IE/Safari might use?

    Try testing it out on another machine, or using a free trial of BrowserStack to spin up a new OS instance and browser - at least then you'll rule out any caching issues hopefully.

    In terms of 301'ing the root (/) to /home - I'm not sure why you'd want to do this for Analytics reasons? It's also not great from an SEO perspective.

    The general thought is that each 301 you implement for a URL, you 'loose' a bit of 'power' (although Matt Cutts has hinted otherwise, there's no clear statement). This is one reason to avoid 301-chaining.
    So, each time someone links to your root domain (refreshwebsites.co.uk) you'll potentially 'loose' some of that link 'power' since the 301 kicks in straight away.

     

     

     

     

     

  • Streety 358 posts 568 karma points
    Sep 30, 2013 @ 14:04
    Streety
    0

    Thanks for that.

    What is the difference between what I am doing via a URL rewrite and a default page in IIS?

    Isn't it the same?

    regards

  • Streety 358 posts 568 karma points
    Sep 30, 2013 @ 14:07
    Streety
    0

    Its still not working for me.

    Ill check on another browser in a different location.

    Thanks again.

  • Drew 165 posts 340 karma points
    Sep 30, 2013 @ 14:34
    Drew
    0

    A default page such as index.html, default.aspx or default.html are all 'files', whereas /home is a directory and is treated differently to a page.
    (the lines are a little blurred on the web - but think like the Windows file management system). 

    The main issue is that when someone hits your root domain, you're 301'ing them to another 'page' essentially (/home). 

    It's not a massive problem if it's a small/personal site, but my point was that really there shouldn't be a need to do it just for analytical reasons :)

  • Streety 358 posts 568 karma points
    Sep 30, 2013 @ 14:40
    Streety
    0

    I have disabled the rule.

    At my site when typing in refreshwebsites.co.uk it resolves to refreshwebsites.co.uk/index.aspx which doesn't exist.

    I have set home as the start default page but its an umbraco node so doesn't physically exist.

    Perhaps I should use something else to handle the default page.

  • Streety 358 posts 568 karma points
    Sep 30, 2013 @ 14:53
    Streety
    0

    You were right. My browser was caching it. I had to dump the cache to get it working.

    Thanks for the advise.

Please Sign in or register to post replies

Write your reply to:

Draft