Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 134 Pomógł: 0 Dołączył: 29.07.2008 Ostrzeżenie: (0%)
|
Witam,
Mam problem z CodeIgniterem, chciałem pozbyć się z adresu index.php i wrzuciłem plik .httacces do głównego katalogu, jednak serwer wypluwa błąd "INTERIAL SERVER ERROR". htaccess wygląda następująco: RewriteEngine on RewriteCond $1 !^([a-zA-z0-9/]) RewriteRule ^(.*)$ index.php [L] RewriteCond $1 !^(index.php|images|robots.txt|system|user_guide) RewriteRule ^(.*)$ index.php/$1 [L] Edit: korzystam z serwera LinuxPL.com |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 165 Pomógł: 20 Dołączył: 2.03.2006 Ostrzeżenie: (0%)
|
Bez index.php nie działa? tzn że z plikiem .htaccess nadal jest coś nie tak.
|
|
|
|
Post
#3
|
|
|
Grupa: Zarejestrowani Postów: 134 Pomógł: 0 Dołączył: 29.07.2008 Ostrzeżenie: (0%)
|
Bez index.php nie działa? tzn że z plikiem .htaccess nadal jest coś nie tak. http://domena/index.php/kontroler działa http://domena/kontroler nie działa (dostaje komunikat: No input file specified.) Mój .htaccess wygląda następująco: RewriteEngine on RewriteCond $1 !^([a-zA-z0-9/]) RewriteRule ^(.*)$ index.php [L] RewriteCond $1 !^(index.php|images|robots.txt|system|user_guide) RewriteRule ^(.*)$ index.php/$1 [L] A może to wina serwera może coś z mod_rewrite? Problem rozwiązany! (IMG:style_emoticons/default/smile.gif) httacsess powinien wyglądać następująco: RewriteEngine On RewriteCond %{REQUEST_URI} ^/system.* RewriteRule ^(.*)$ index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?/$1 [L] Ten post edytował james8 8.01.2013, 21:16:04 |
|
|
|
james8 [CodeIgniter] problem z .htaccess 27.12.2012, 09:54:51
kilab Popraw na tak:
RewriteEngine on
RewriteCond ... 27.12.2012, 10:16:10 
szok Cytat(kilab @ 27.12.2012, 10:16:10 ) ... 27.12.2012, 10:27:42 
james8 Cytat(kilab @ 27.12.2012, 10:16:10 ) ... 8.01.2013, 10:51:50
szok Tak, bo tam CI trzyma wszystkie swoje pliki.
Ale ... 8.01.2013, 11:47:19 
james8 Cytat(szok @ 8.01.2013, 11:47:19 ) Ta... 8.01.2013, 14:50:53 ![]() ![]() |
|
Aktualny czas: 26.12.2025 - 13:30 |