Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Mod_rewrite]Bład regułki
PawelC
post
Post #1





Grupa: Zarejestrowani
Postów: 1 173
Pomógł: 121
Dołączył: 24.09.2007
Skąd: Toruń

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


Witam (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Napisałem sobie regułke do zmiany adresów, wygląda ona tak:
Cytat
RewriteEngine On
RewriteRule ^slowo/([0-9][0-9])/$ slowo.php?id=$1

I coś mi niechcę działać i niewiem dlaczego?
Adres linków który przepisuje wygląda tak:
Cytat
slowo.php?id=99

Te 99 to przykładowe id
Mod_rewrite jest włączone na serwerze, pisałem tą regułke z kursu na home.pl
Adres strony wraz z przykładowym słowem wygląda tak:
Cytat
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
PawelC
post
Post #2





Grupa: Zarejestrowani
Postów: 1 173
Pomógł: 121
Dołączył: 24.09.2007
Skąd: Toruń

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


Wywala mi błąd:
Cytat
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@exploitek.info and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Sprawdzałem poprzez phpinfo(); i pokazuje że mod_rewrite załadowano:
Cytat
mod_php5, mod_ssl, mod_frontpage, mod_setenvif, mod_so, mod_headers, mod_expires, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env, mod_vhost_alias, http_core

Tutaj http://www.forum.exploitek.info jest użyty mod_rewrite i działa bez problemu.

Ten post edytował ExPlOiT 31.12.2007, 16:58:31
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: 5.10.2025 - 20:43