- http://moj-serwis/page.php?zmienna=q
- http://moj-serwis/reghister.php?zmienna=q
- http://moj-serwis/info.php?zmienna=q
chciałbym te adresy przepisac w ten sposób:
- http://moj-serwis/q/page.php
- http://moj-serwis/q/reghister.php
- http://moj-serwis/q/info.php
czyli główny wzór to
http://adres/plik?zmienna=wartość
na
http://adres/wartość/plik
jest taka możliwość?
pozdrawiam

P.S
i jeszcze się zapytam... dlaczego mi nie działa mod rewrite
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@localhost 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.
Apache/2.0.55 (Win32) php/5.1.2 Server at localhost Port 80
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost 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.
Apache/2.0.55 (Win32) php/5.1.2 Server at localhost Port 80
w pliku logów Apache'a (apache_error.log) jest następująca adnotacja:
Cytat
[Mon Jul 03 14:05:15 2006] [alert] [client 127.0.0.1] D:/server/www/mr/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
skoro w pliku httpd.conf mam usatwione:
Kod
LoadModule rewrite_module modules/mod_rewrite.so
plik .htaccess wygląda tak:
(tak dla testu zrobiłem)
Kod
RewriteEngine On
RewriteBase /
RewriteBase /
zdraviam
