Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

silverstripe-linkmapping


Go to End


4 Posts   2093 Views

Avatar
MrPete

Community Member, 2 Posts

15 January 2012 at 7:12am

Edited: 15/03/2012 11:58pm

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

Avatar
MrPete

Community Member, 2 Posts

28 January 2012 at 3:14am

Edited: 15/03/2012 11:58pm

..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?

Avatar
Pixel Labs

Community Member, 14 Posts

9 March 2012 at 1:17am

Edited: 15/03/2012 11:58pm

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!

Avatar
Nobrainer Web

Community Member, 138 Posts

6 July 2012 at 11:33pm

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.