Jump to:

325 Posts in 200 Topics by 157 members

Migrating a Site to Silverstripe

SilverStripe Forums » Migrating a Site to Silverstripe » silverstripe-linkmapping

What you need to know when migrating your existing site to SilverStripe.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 745 Views
  • MrPete
    Avatar
    Community Member
    2 Posts

    silverstripe-linkmapping Link to this post

    Hi,
    This may be something obvious but I've searched through the forum and google and can't find a solution.

    I have installed Silverstripe as a replacement CMS and have added silverstripe-linkmapping to handle the old links that have been indexed in google. I can access the linkmapping admin page and add the urls to map but it still defaults to the 'page not found'.

    Silverstripe version 2.4.5

    Is there any extra config / setup that needs to be in place for it to work? The htaccess file is the default from the install.

    ----

    For reference here is an old link that I am trying to redirect:
    http://www.maranathabookshop.co.uk/index.php/top-ten/

    I am trying to map it to here with linkmapping:
    http://www.maranathabookshop.co.uk/in-store/our-bestsellers/

    I have tried using the following in the 'Mapped Link' field but none of them redirect:
    http://www.maranathabookshop.co.uk/index.php/top-ten
    /index.php/top-ten/
    /top-ten

    Thanks in advance.

    Pete

  • MrPete
    Avatar
    Community Member
    2 Posts

    Re: silverstripe-linkmapping Link to this post

    ..has anyone else had this issue?

    On a related note, if someone comes to the site via an old google listing (old site used index.php/..) then all pages visited after the inital 'page not found' page still have the index.php in the address. Can that be changed?

  • Ku$h
    Avatar
    Community Member
    14 Posts

    Re: silverstripe-linkmapping Link to this post

    Hi MrPete. I'm having exactly the same problem. I've checked the in the database and there is no obvious difference between the ones that work and the ones that don't. I've had the problem here:

    http://www.documentlogic.co.uk/pdf/

    and here

    http://bridgeinteriors.co.uk/case-studies/carlsberg-head-office/

    Each site is running SS version 2.4.5 and 2.4.7

    Please help somebody!

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: silverstripe-linkmapping Link to this post

    I don't know the solution to this, but i think the problem is that the link-mapping module, only kicks in when a "page not found" error happens, and since SS also uses index.php behind the pretty URL's - the request never actually goes the the link mapping module controller.

    I wonder if there is someway of combining the code from the linkmapping module and the code from the SS book, regarding Legacy URL's.
    I think the code from SS book is not working with nested URL's but i don't know.

    745 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.