Search found 4 matches

by jnsen
Fri Sep 26, 2008 2:58 pm
Forum: General discussions
Topic: freetag & mod_rewrite
Replies: 10
Views: 6651

Aaaand, it worked! Thanks Garvin for the support.

To sum it up, if you want the Freetag Plugin to listen to URLs like www.mydomain.com/tag/taggy, do the following:

1. Change the Taglink variables in both the sidebar and event configuration.

2. Add the following lines of code in the index.php ...
by jnsen
Fri Sep 26, 2008 1:48 pm
Forum: General discussions
Topic: freetag & mod_rewrite
Replies: 10
Views: 6651

We can have a few different solutions then.

A [R] redirection wouldn't work, because it would change the URL displayed in the browser. And the Rewriterule doesn't work either because it doesn't change the original REQUEST_URI, which is used by serendipity.

I tried changing (line 285, functions ...
by jnsen
Thu Sep 25, 2008 5:12 pm
Forum: General discussions
Topic: freetag & mod_rewrite
Replies: 10
Views: 6651

or would it maybe be easier to make it listen to the "tag" part of the url, instead of the "plugin" part?

can something be done here, perhaps (line 1593, plugin_api.inc.php):
function event_hook($event, &$bag, &$eventData, $addData = null)
{
// Define event hooks here, if you want you plugin to ...
by jnsen
Thu Sep 25, 2008 4:35 pm
Forum: General discussions
Topic: freetag & mod_rewrite
Replies: 10
Views: 6651

Hi,
I tried setting both Taglinks to http://www.domain.com/tag/%tagname%, and adding the following rewrite rule:

Code: Select all

RewriteRule ^tag/(.*) plugin/tag/$1
but it still does't work.

Does anybody have a different solution?