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
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