Witam,

mam taki kod pliku .htaccess

  1. RewriteEngine On
  2.  
  3. RewriteCond %{HTTP_HOST} ^(www\.)?(.*).domena.pl$
  4. RewriteRule ^([^*]*)$ index.php?sub=%2



Wpisuje www.cos.domena.pl i jest ok.

Chciałbym do tego dołożyć parametry z przodu adresu czyli

  1. RewriteEngine On
  2.  
  3. RewriteCond %{HTTP_HOST} ^(www\.)?(.*).domena.pl$
  4. RewriteRule ^([^*]*)$ index.php?sub=%2
  5.  
  6. RewriteCond %{HTTP_HOST} ^(www\.)?(.*).domena.pl/([^*]*)/$
  7. RewriteRule ^([^*]*)$ index.php?sub=%2&akcja=$3


Chodzi mi o uzyskanie takiego wyniku

www.cos.domena.pl/oferta/

index.php?sub=cos&akcja=oferta