CodeIgniter Forums
Access to the javascript directory with TinyMCE javascript while using mod rewrite - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Access to the javascript directory with TinyMCE javascript while using mod rewrite (/showthread.php?tid=21764)



Access to the javascript directory with TinyMCE javascript while using mod rewrite - El Forum - 08-19-2009

[eluser]adaykin[/eluser]
I'm using the TinyMCE program to bulid editors, but when I try and use their image plugin, I get an error. The javascript is trying to get the root url, but it can't because of mod_rewrite. The documentBaseURI from the TinyMCE is what gets broken I believe.

I have the directory setup as follows:

askmary/
public/js/TinyMCE/A bunch of tiny mce stuff/
system/

Using mod_rewrite I have the following rules:

Code:
RewriteEngine On
RewriteBase /askmary/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|public)
RewriteRule ^(.*)$ index.php/$1 [L]

How would I change these rules so tiny mce can do its magic?