eschnou / storytlr

Storytlr is an opensource lifestreaming and microblogging platform written in PHP. Note: The default branch (master) is the development branch, if you need a stable version, see the release-XX branches, tags, or downloads.
http://storytlr.org
Other
216 stars 57 forks source link

Widget links don't work when storytlr deployed in sub-folder #87

Open lisvane opened 10 years ago

lisvane commented 10 years ago

Clicking on the storyteller icon in the lifestream gives a not found 404 error. The /entry folder has not been created on the host. Do I need to point something elsewhere as all the posts in the lifestream are listed correctly.

eschnou commented 10 years ago

Storytlr uses Apache URL rewriting to map URL back to index.php. This is done with the .htaccess file in the project root. But for this file to be taken into account, you must set 'AllowOverride All' in your virtual host. Have you done this?

lisvane commented 10 years ago

When I do this storytlr does not load on the page that it is embedded on using the widget.js

lisvane commented 10 years ago

I have confirmed with the host provider that allowOverride All is set. Do I need to redirect StoryTlr somewhere? It is in public_html/story

eschnou commented 10 years ago

So, when you access 'http://yourdomain/story', it works, but as soon as you click on a link you get a 404 ? Can you double check that the file .htaccess is present in your root folder?

lisvane commented 10 years ago

Hi Laurent

Yes .htaccess is present.

The problem only exists from the lifestream links. If I use story then the links are fine. If I embed the story page as an object there is no issue. The problem only seems to be present using the widget.js link.
The link address from the icon is of the form..../entry/1/5 rather than..../entry/text_from_comment

I installed Storytlr on the host using scriptaculous. Everything is hosted locally. Do I need to define my domain in the advanced settings of the configuration and define a CNAME?

/Thanks/

//

On 23/05/2014 20:06, Laurent Eschenauer wrote:

So, when you access 'http://yourdomain/story', it works, but as soon as you click on a link you get a 404 ? Can you double check that the file .htaccess is present in your root folder?

— Reply to this email directly or view it on GitHub https://github.com/storytlr/storytlr/issues/87#issuecomment-44048955.

eschnou commented 10 years ago

Ha! The problem only occurs with the widget? This may well be a bug then. Can you share with me the url to your site/widget (you can do it in bu email: laurent@eschenauer.be) so I can have a look? Thanks!

lisvane commented 10 years ago

I am also unable to upload pictures!

eschnou commented 10 years ago

Ok, I have confirmed this is a bug. In the widget, the links point to the top root and don't take into account the sub-folder. Thanks for reporting this.