Posiadam taki plik .htaccess:
Kod
RewriteEngine on
#html to php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} (.*)\.html
RewriteRule ^(.+)\.html(\?.*)? $1.php$2 [E=WasHTML:yes]
RewriteCond %{ENV:WasHTML} ^yes$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.php(\?.*)? $1.html$2
RewriteRule ^konto/ucp/poczta/usun/sender/([^-]*).html$ ./ucp_poczta.php?mode=delete&id=$i&what=sent
#html to php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} (.*)\.html
RewriteRule ^(.+)\.html(\?.*)? $1.php$2 [E=WasHTML:yes]
RewriteCond %{ENV:WasHTML} ^yes$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.php(\?.*)? $1.html$2
RewriteRule ^konto/ucp/poczta/usun/sender/([^-]*).html$ ./ucp_poczta.php?mode=delete&id=$i&what=sent
Po wywolaniu adresu przykładowo xxx.pl/konto/ucp/poczta/usun/sender/3.html, $_GET['id'] zwraca mi poprostu $i. Co jest nie tak? Wybaczcie, nie znam się zabardzo na mod_rewrite.
