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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page not found when referencing /assests/Uploads/*


Reply


3 Posts   958 Views

Avatar
Greg1

Community Member, 28 Posts

15 December 2010 at 2:01pm

I am trying to pull images from my /assets/Uploads/ folders into my pages. The image tags are correctly being generated on the page but no images appear. When I type the image url in the browser, eg http://www.mysite.com/assets/Uploads/image1.jpg it returns a Page not found error.

I've check the file structure and the images are in the /assets/Uploads/ folder.

Inside the CMS (Files & Images tab) they are listed in the correct location as well. However, when I use the "edit asset" button and click on the URL field it also displays a Page not found.

Any suggestions?

Avatar
Invader_Zim

Community Member, 141 Posts

15 December 2010 at 8:32pm

Hi Greg1.

Not quite sure, but maybe it has something to do with your .htaccess file in your /assets directory.
Here's a nice thread on this subject: [url]http://silverstripe.org/installing-silverstripe/show/14878?start=0[/url]

Cheers,
Christian

Avatar
Greg1

Community Member, 28 Posts

16 December 2010 at 2:10pm

Thanks Christian, that fixed the problem easily. I did see the thread when looking to solve the issue but it didn't seem relevant to my situation.