Clean URLs for Published Articles feed
- lgp171188
- Bear Rating Trainee
- Posts: 16
- Joined: 18 Mar 2013, 19:52
- Location: Bengaluru, Karnataka, India
- Contact:
Clean URLs for Published Articles feed
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.
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: Clean URLs for Published Articles feed
I would suggest not sperging over urls. Either that or google mod_rewrite.
- davidm
- Plays it by ear
- Posts: 115
- Joined: 29 Mar 2012, 20:10
- Contact:
Re: Clean URLs for Published Articles feed
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:
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.
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.
Last edited by davidm on 27 Jun 2014, 14:05, edited 1 time in total.
- lgp171188
- Bear Rating Trainee
- Posts: 16
- Joined: 18 Mar 2013, 19:52
- Location: Bengaluru, Karnataka, India
- Contact:
Re: Clean URLs for Published Articles feed
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.
Last edited by lgp171188 on 27 Jun 2014, 14:12, edited 1 time in total.
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: Clean URLs for Published Articles feed
if you don't understand why stripping the key is "not advisable" I just don't know what to say
- davidm
- Plays it by ear
- Posts: 115
- Joined: 29 Mar 2012, 20:10
- Contact:
Re: Clean URLs for Published Articles feed
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.
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.
Who is online
Users browsing this forum: No registered users and 3 guests