PDA

View Full Version : Tiny mcs and .htaccess



Masetek
07-18-2006, 09:37 PM
This is really doing my head in!

I am using tiny MCE (WYSIWYG editor) in my cms. Problem is, when i click the html or image adding options (opens a popup) my root .htaccess kicks in and rewrites the url. So instead of getting the html of the page I am editing I get my homepage (defualt if no .html file is found. My .htaccess looks lilke this:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*).html?$ index.php?page=$1 [QSA,L]
RewriteCond %{HTTP_HOST} ^site.com [NC]
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301]

Tiny MCE is installed in the admin directory and the admin directory has its own .htaccess file so in theory it shouldn't even look at the root .htaccess.

Is there a way I can change this rule:

RewriteRule ^(.*).html?$ index.php?page=$1 [QSA,L]

So it only applies to the root folder and not subfolders?

Has anyone else had this prob? If so I'm keen to know how u solved it.

Thanks

Nintendo
07-24-2006, 01:54 AM
Add

RewriteBase /

Masetek
07-26-2006, 07:27 PM
Thanks Nintendo, problem sorted :)