Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Kohana] The requested URL / was not found on this server.
pifarek
post 11.11.2012, 16:05:02
Post #1





Grupa: Zarejestrowani
Postów: 91
Pomógł: 15
Dołączył: 3.03.2009
Skąd: Włocławek

Ostrzeżenie: (0%)
-----


Witam.
Mam serwer na linuxpl.com, wgrałem tam aplikację na Kohana 3.3, ustawiłem .htaccess i bootstrap.php, do serwera jest podpięta domenta. Po wpisaniu adresu w przeglądarkę pokazuje się błąd Kohany: "The requested URL / was not found on this server.".
bootstrap.php:
  1. Kohana::init(array(
  2. 'base_url' => '/',
  3. 'index_file' => false
  4. ));

.htaccess:
  1. # Turn on URL rewriting
  2. RewriteEngine On
  3.  
  4. # Installation directory
  5. RewriteBase /
  6.  
  7. # Protect hidden files from being viewed
  8. <Files .*>
  9. Order Deny,Allow
  10. Deny From All
  11. </Files>
  12.  
  13. # Protect application and system files from being viewed
  14. RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
  15.  
  16. # Allow any files or directories that exist to be displayed directly
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteCond %{REQUEST_FILENAME} !-d
  19.  
  20. # Rewrite all other URLs to index.php/URL
  21. RewriteRule .* index.php/$0 [PT]


Na hostingu jest podpięta jeszcze inna domena, na której działa Kohana w jakiejś starszej wersji z gałęzi 3.x, bootstrap i htaccess są ustawione tak samo, jak powyżej. W czym może być problem?


--------------------
www.swiths.com
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
klocu
post 11.11.2012, 22:12:52
Post #2





Grupa: Zarejestrowani
Postów: 291
Pomógł: 45
Dołączył: 21.08.2007

Ostrzeżenie: (0%)
-----


Ja tylko dorzucę, bo sam to przerabiałem przy migracji:

Cytat
PSR-0 support (file/class naming conventions)
With the introduction of PSR-0 support, the autoloading of classes is case sensitive. Now, the file (and folder) names must match the class name exactly.


.htaccess nie zmieniał się od wielu wersji (chyba że ktoś używa możliwie nowej wersji apache'a, która Order Deny,Allow każe sobie zapisać inaczej - krócej)
Go to the top of the page
+Quote Post
pifarek
post 12.11.2012, 19:33:13
Post #3





Grupa: Zarejestrowani
Postów: 91
Pomógł: 15
Dołączył: 3.03.2009
Skąd: Włocławek

Ostrzeżenie: (0%)
-----


Cytat(klocu @ 11.11.2012, 22:12:52 ) *
Ja tylko dorzucę, bo sam to przerabiałem przy migracji:



.htaccess nie zmieniał się od wielu wersji (chyba że ktoś używa możliwie nowej wersji apache'a, która Order Deny,Allow każe sobie zapisać inaczej - krócej)

Wychodzi na to, że to właśnie tego wina. Ale nie podoba mi się, że muszę teraz każdy plik nazywać z dużej litery i miliard klas w kodzie typu url::base() zmieniać na URL::base() ohmy.gif !

Dzięki wszystkim!


--------------------
www.swiths.com
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 17:15