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.

Migrating a Site to Silverstripe /

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

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

Rewrite URL For Old Images


Reply


1436 Views

Avatar
davede

Community Member, 24 Posts

30 July 2011 at 8:20am

Hi all,

We've moved (most) of our site from WP to SS.

Just got an issue with referencing the old images. We've got all our images using absolute source references to the old WP image directory.

the old path to an image was:

[url]http://www.mymoneycalculator.com.au/guides/wp-content/uploads/2011/06/dividend-dates.png[/url]

now the new path is:

[url]http://www.mymoneycalculator.com.au/Images/dividend-dates.png[/url]

When I try and use a RewriteRule in the .htaccess file i get shown this message in firefox:

"The action 'wp_content' does not exist in class Hub_Controller"

I'm very new to SS so I have no idea what that means.

Any help would be very much appreciated.

Thanks,

Dave