Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CodeIgniter] problem z .htaccess
james8
post 27.12.2012, 09:54:51
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 27.12.2012, 10:16:10
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
szok
post 27.12.2012, 10:27:42
Post #3





Grupa: Zarejestrowani
Postów: 165
Pomógł: 20
Dołączył: 2.03.2006

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]


Wywal katalog system, nie potrzeba do niego dostępu.


--------------------
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: 25.06.2025 - 01:18