Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Kohana] TinyMCE i 404
masterix
post
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.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Cypherq
post
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.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 30.12.2025 - 20:04