Copied to clipboard

Flag this post as spam?

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


  • Dave Pearcey 46 posts 178 karma points
    Jul 20, 2017 @ 14:27
    Dave Pearcey
    0

    redirect url management not working in live environment

    Hey.

    I'm having an issue where the built in redirect url management isn't working within my live environment. I've tested it to be working perfectly fine in my local test environment.

    I now have an issue where a content editor has changed the name of an article category and that page and all it's children haven't been added to the tracker... But again, it worked in my test environment.

    I've been unable to find anything that could be of issue here though. Can anyone point me in a possible direction?

    Thanks.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 20, 2017 @ 14:30
    Alex Skrypnyk
    0

    Hi Dave

    What version of Umbraco are you using?

    Are IIS settings the same?

    Thanks,

    Alex

  • Dave Pearcey 46 posts 178 karma points
    Jul 20, 2017 @ 14:33
    Dave Pearcey
    0

    Im using 7.6.1.

    IIS has no difference in setup (that i can see at least)

    also, here's the snippet from umbracosettings.config

    <web.routing trySkipIisCustomErrors="true" internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false"
        umbracoApplicationUrl="" disableRedirectUrlTracking="false">
      </web.routing>
    
  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 20, 2017 @ 14:36
    Alex Skrypnyk
    0

    Do you have "URL Rewrite" installed on both IISes?

    https://www.iis.net/downloads/microsoft/url-rewrite

  • Dave Pearcey 46 posts 178 karma points
    Jul 20, 2017 @ 14:46
    Dave Pearcey
    0

    I dont have it on either IIS. But like i said, it works locally. I didnt think umbraco's build in redirect tracker used IIS anyway?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 20, 2017 @ 14:48
    Alex Skrypnyk
    0

    Do you have one of these dlls in bin folder?

      "InfoCaster.Umbraco.UrlTracker"
      "SEOChecker"
      "Simple301"
      "Terabyte.Umbraco.Modules.PermanentRedirect"
      "CMUmbracoTools"
      "PWUrlRedirect"
    
  • Walter 1 post 21 karma points
    Apr 16, 2020 @ 07:31
    Walter
    0

    This solved it for me. I had the InfoCaster.Umbraco.UrlTracker.dll in my bin folder. Worked nicely after removing it

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 20, 2017 @ 14:48
    Alex Skrypnyk
    0

    If the code is the same then IIS or database is the problem.

  • Dave Pearcey 46 posts 178 karma points
    Jul 20, 2017 @ 14:51
    Dave Pearcey
    0

    Nope, i don't have any of those dll's. should i?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 20, 2017 @ 14:53
    Alex Skrypnyk
    0

    You shouldn't.

  • Dave Pearcey 46 posts 178 karma points
    Jul 20, 2017 @ 14:57
    Dave Pearcey
    0

    So you can see why I've emssaged here. Nothing seems out of place compared between local and live...

  • Dave Pearcey 46 posts 178 karma points
    Jul 24, 2017 @ 08:43
    Dave Pearcey
    0

    update: i've upgeaded to version 7.6.4 of Umbraco and that made no difference.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 24, 2017 @ 08:53
    Alex Skrypnyk
    0

    Hi Dave

    What is the difference between the test environment and live?

    Is it the save server?

    Are you using maybe CloudFlare? Host management in Umbraco?

    Thanks,

    Alex

  • Dave Pearcey 46 posts 178 karma points
    Jul 24, 2017 @ 09:00
    Dave Pearcey
    0

    There's 3 environments.

    the dev environment local on my machine. Which works.

    both the staging and live environments are exactly the same and neither work. They are within azure cloud, load balanced across multiple servers and use a CDN.

    The IIS configuration is mostly the same. The only differences really are file compression and error logging.

  • Dave Pearcey 46 posts 178 karma points
    Jul 24, 2017 @ 11:02
    Dave Pearcey
    0

    I've just tried installing one of the third party packages that handle redirects, UrlTracker. https://www.nuget.org/packages/UrlTracker/

    Just tried this out in my staging environment and it works.

    Could the issue be something to do with Umbraco's tracker not working within azure?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 24, 2017 @ 11:45
    Alex Skrypnyk
    0

    It shouldn't be an issue.

  • Alan Mitchell 57 posts 281 karma points c-trib
    Dec 20, 2017 @ 15:47
    Alan Mitchell
    1

    Just came across the same issue myself. For future reference, the explanation (and a workaround) is here http://issues.umbraco.org/issue/U4-9511

  • nehakakar 15 posts 85 karma points
    Jul 01, 2023 @ 21:20
    nehakakar
    0

    Hi Dave,

    You havent mention much about your environment, programming language, and framework, i will give you some common web framework like Express.js in Node.js:

    const express = require('express');
    const app = express();
    
    // Redirect route
    app.get('/old-url', (req, res) => {
      res.redirect(301, '/new-url');
    });
    
    // Other routes
    app.get('/new-url', (req, res) => {
      res.send('This is the new URL');
    });
    
    // Start the server
    app.listen(3000, () => {
      console.log('Server is running on port 3000');
    });
    

    when a user visits the /old-url route, the server responds with a 301 redirect to the /new-url route. You can define more redirect rules based on your specific requirements. You can get deep url redirection chain on any online tool such as this redirectchecker.com tool.

Please Sign in or register to post replies

Write your reply to:

Draft