Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CodeIgniter] problem z .htaccess
james8
post
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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kilab
post
Post #2





Grupa: Zarejestrowani
Postów: 180
Pomógł: 19
Dołączył: 4.11.2007

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


Popraw na tak:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|system|user_guide)
RewriteRule ^(.*)$ index.php/$1 [L]
Go to the top of the page
+Quote Post
james8
post
Post #3





Grupa: Zarejestrowani
Postów: 134
Pomógł: 0
Dołączył: 29.07.2008

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


Cytat(kilab @ 27.12.2012, 10:16:10 ) *
Popraw na tak:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|system|user_guide)
RewriteRule ^(.*)$ index.php/$1 [L]



Niestety nadal: 500 Internal Server Error

EDIT:

Problem rozwiązany, dzięki doskonałej pomocy technicznej (IMG:style_emoticons/default/smile.gif)

Problem nie leżał po stronie pliku .htaccess tylko edytra! Używam Eclipse PHP (zawodowego edytora jakby nie patrzeć a pomimo to doklejał znacznik: <FEFF> na początku pliku) albo doklejał to klent FTP fillezilla.

Dziekuje za pomoc problemos rozwiązany!

Cytat(szok @ 27.12.2012, 10:27:42 ) *
Wywal katalog system, nie potrzeba do niego dostępu.


szok proszę powiedz czy katalog system jest potrzebny na serwerze? czy można go usunąć?

Ten post edytował james8 30.12.2012, 16:40:38
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: 27.12.2025 - 22:54