Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 93 Pomógł: 0 Dołączył: 7.09.2004 Ostrzeżenie: (0%)
|
Witam,
Zaintegrowałem sobie TinyMCE z projektem w Kohanie i jak kliknę w dodawanie obrazka w edytorze to wyświetla mi się nowe okienko z informacją Cytat The page you requested, assets/js/tiny_mce/themes/advanced/image.htm, could not be found. Czy muszę dodać jakąś regułkę do .htaccess, żeby nie routował tego URLa? Czy jak to obejść? pzdr. |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 181 Pomógł: 9 Dołączył: 28.08.2006 Skąd: Katowice Ostrzeżenie: (0%)
|
Kod # Turn on URL rewriting RewriteEngine On # Put your installation directory here: # If your URL is www.example.com/kohana/, use /kohana/ # If your URL is www.example.com/, use / RewriteBase /dev/cms/ # Protect application and system files from being viewed RewriteCond $1 ^(application|system) # Rewrite to index.php/access_denied/URL RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L] # Allow these directories and files to be displayed directly: # - index.php (DO NOT FORGET THIS!) # - robots.txt # - favicon.ico # - Any file inside of the images/, js/, or css/ directories # - or media/images, media/js, media/css directories RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|media) # No rewriting RewriteRule ^(.*)$ - [PT,L] # Rewrite all other URLs to index.php/URL RewriteRule ^(.*)$ index.php/$1 [PT,L] Przykładowy .htaccess z manuala. W tym miejscu dopisujesz swoje assets: Kod ]RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|media|assets) Jak nie działa, to skończyły mi się pomysły. |
|
|
|
masterix [Kohana] TinyMCE i 404 7.05.2009, 10:59:31
Cypherq KodRewriteCond $1 ^(assets/)
Dzia... 7.05.2009, 16:49:26
masterix Niestety nie. 7.05.2009, 17:00:34
Cypherq Ale jak wygląda Twój .htaccess? I jaka jest d... 7.05.2009, 19:31:36
masterix Ścieżka do tiny: public_html/assets/js/tiny_mce
A ... 7.05.2009, 20:48:07
Cypherq Więc, albo daj TinyMCE do webroota i powinno zadzi... 7.05.2009, 23:17:42
masterix Jak dam assets "wyżej" to wtedy nie będą... 7.05.2009, 23:27:01
Cypherq No tak, .htaccess. Ale gdzie masz w końcu te asset... 8.05.2009, 10:49:42
masterix public_html/assets
public_html/application
public_... 8.05.2009, 17:13:58
Cypherq Winny jest .htaccess, którego nie potrafisz właści... 8.05.2009, 19:28:55
masterix No że nie potrafię to zauważyłem bo mi się to nie ... 8.05.2009, 22:03:07
masterix Eh... błąd leżał gdzie indziej. Jednak dzięki za c... 9.05.2009, 23:46:50 ![]() ![]() |
|
Aktualny czas: 30.12.2025 - 20:04 |