22 sty 2010

Problem z FCKeditor

Problem z prwidłowym działaniem przy edycji danych pojawia się przy dodaniu do .htaccess reguly np.:

RewriteRule ^(.*)\/(.*).html$ web/show.php?nazwa_url=$2

Do reguly dopasowuje się url:

../edytor/editor/fckeditor.html?InstanceName=opis&Toolbar=Default

wykorzystywany przez FCKeditor w iframe

<iframe id="opis___Frame" src="../edytor/editor/fckeditor.html?InstanceName=opis&Toolbar=Default" mce_src="../edytor/editor/fckeditor.html?InstanceName=opis&Toolbar=Default" width="570px" height="500px" frameborder="0" scrolling="no"></iframe>

i nie ładuje się właściwy html, tylko główna strona serwisu.

Dodanie do .htaccess reguly

RewriteCond %{REQUEST_URI} !edytor/editor

przed

RewriteRule ^(.*)\/(.*).html$ web/show.php?nazwa_url=$2

przywraca prawidłowe dziłanie.

4 sie 2009

Wykonanie kilku przekierowań 301, 302

RewriteRule ^panel/test1.php /panel/test2.php [R=301]
RewriteRule ^panel/test2.php /panel/test3.php [R=302]
RewriteRule ^panel/test3.php /panel/test4.php [R=301]
RewriteRule ^panel/test4.php /panel/test5.php [R=302]
RewriteRule ^panel/test5.php /panel/test6.php [R=301]

przydatne do testów
plik test6.php:

<? sleep(20); ?>

OK