php – htaccess RewriteRule using 2 parameters doesn't work (parameter action is empty)-ThrowExceptions

Exception or error:

I want the url to appear like this for example:
/index.php?incl=startseite&action=edit as /startseite/edit
I tried it like this but it didn’t work:

RewriteEngine On

RewriteBase /

RewriteRule ^([A-Za-z0-9ÄäÖöÜü-]+)/([A-Za-z0-9ÄäÖöÜü-]+)/([^/]*)$ index.php?incl=$1&action=$2 [QSA,L]
RewriteRule ^([A-Za-z0-9ÄäÖöÜü-]+)/([A-Za-z0-9ÄäÖöÜü-]+)$ index.php?incl=$1 [QSA,L]
How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *