Page 1 of 1

wysiwyg editor (non htmlarea) and mod_rewrite fails

Posted: Wed Dec 21, 2005 9:21 pm
by enobis.com
OK, so I just started testing Serendipity (very nice) and found a problem after adding the FCKeditor plugin. When mod_rewrite is set, the editor does not work. Problem has to do with the rewrite rules defined in the .htacces file.

Somewhat frustrating given I followed the instructions to the letter on three seperate machines, all of which had the same problem. The instructions will never work with mod_rewrite being used because the instructions recommend extracting the FCKeditor to the plugins/serendipity_event_fckeditor path. Given that ^plugin is one of the rewrite rules, this will not work.

Solution:

1. Extract the FCKeditor tar ball to the top level serendipity directory along side htmlarea, plugins, et al. - NOTE: the tar ball will create the folder ./FCKeditor important for next step.

2. Set relative path to FCKeditor/ in the plugin configuration.

3. Modify the .htaccess file by adding the following line after the rewrite rule for htmlarea:

Code: Select all

RewriteRule ^FCKeditor/(.*) FCKeditor/$1 [L,QSA]
Problem is that if you change the setting for URL rewritting from mod_rewrite then this setting in the .htaccess file will be deleted and you will need to add it by hand again if you switch back to mod_rewrite.

Re: wysiwyg editor (non htmlarea) and mod_rewrite fails

Posted: Wed Dec 21, 2005 9:32 pm
by garvinhicking
The serendipity_event_fckeditor directory contains a ".htaccess" with "Rewriteengine Off" command. Didn't you get/copy that file?

Regards
,garvin

Re: wysiwyg editor (non htmlarea) and mod_rewrite fails

Posted: Wed Dec 21, 2005 9:44 pm
by enobis.com
nope
garvinhicking wrote:The serendipity_event_fckeditor directory contains a ".htaccess" with "Rewriteengine Off" command. Didn't you get/copy that file?

Regards
,garvin

Posted: Thu Dec 22, 2005 12:03 am
by enobis.com
Ok, so I created a .htaccess file in the path:

Code: Select all

plugins/serendipity_event_fckeditor
which contains the entry:

Code: Select all

Rewriteengine Off
I extracted the FCKeditor as originally instructed into this directory and set my relative path accordingly. FYI - the extraction defaults to FCKeditor and the default for the plugin is all lowercase.

And all is well.

Now, I installed the plugin through spartacus and the installation never added the .htaccess file - so for anyone reading this I would say that this would be the proper method for fixing.