wysiwyg editor (non htmlarea) and mod_rewrite fails

Found a bug? Tell us!!
Post Reply
enobis.com

wysiwyg editor (non htmlarea) and mod_rewrite fails

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: wysiwyg editor (non htmlarea) and mod_rewrite fails

Post by garvinhicking »

The serendipity_event_fckeditor directory contains a ".htaccess" with "Rewriteengine Off" command. Didn't you get/copy that file?

Regards
,garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
enobis.com

Re: wysiwyg editor (non htmlarea) and mod_rewrite fails

Post 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
enobis.com

Post 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.
Post Reply