Page 1 of 1

Clean URLs for Published Articles feed

Posted: 26 Jun 2014, 12:24
by lgp171188
Right now the published URLs feed is having a URL like http://reader.lguruprasad.in/public.php ... bd59543f54. It would be good to have clean URL like /public.php/<username>/ or something that is easier to type and share. Couldn't find a way to do that via tt-rss and couldn't find any plugins to do the same.

Re: Clean URLs for Published Articles feed

Posted: 26 Jun 2014, 12:32
by fox
I would suggest not sperging over urls. Either that or google mod_rewrite.

Re: Clean URLs for Published Articles feed

Posted: 27 Jun 2014, 13:57
by davidm
As a technical ignorant, I use .htaccess. Is that fine or is there any obscure reason that makes it not advisable?

Place .htaccess file on ttrss root folder:

Code: Select all

RewriteEngine On
RewriteRule   niceURL.rss   public.php?op=rss&id=-1&key=hjlkhlkjhlkjhkjhlkjhkljhfd8tfi


Reason I do this: the key in the URL may change (reinstallation for example) and I may have configured third applications to use that feed (RSS to blog stuff), and then I would have to change the URL in those applications that I may not even remember. So I prefer always keeping a nice, permanent URL and update only .htaccess if necessary.

Re: Clean URLs for Published Articles feed

Posted: 27 Jun 2014, 14:03
by lgp171188
davidm wrote:As a technical ignorant, I use .htaccess. Is that fine or is there any obscure reason that makes it not advisable?

Place .htaccess file on ttrss root folder:

Code: Select all

RewriteEngine On
RewriteRule   niceURL.rss   public.php?op=rss&id=-1&key=hjlkhlkjhlkjhkjhlkjhkljhfd8tfi


Reason I do this: the key in the URL may change (reinstallation for example) and I may have configured third applications to use that feed (RSS to blog stuff), and then I would have to change the URL in those applications that I may not even remember. So I prefer always keeping a nice, permanent URL and update only .htaccess if necessary.


Whether you use it in .htaccess file within the tt-rss folder or put it in the apache configuration, it is the same mod_rewrite rule that is in place. The 'RewriteEngine On", "RewriteRule" directives are provided only by Apache's mod_rewrite module.

Re: Clean URLs for Published Articles feed

Posted: 27 Jun 2014, 14:08
by fox
if you don't understand why stripping the key is "not advisable" I just don't know what to say

Re: Clean URLs for Published Articles feed

Posted: 27 Jun 2014, 15:58
by davidm
Actually I was asking if using .htaccess was the best way to change the URL.

I confess that I don't know the importance of having that key in the first place. I'm a non-technical user that can barely upload some PHP on a shared hosting. Release the bears.