I'm changing
mydomain.com/directory/?name=lorem&action=posts
to
mydomain.com/directory/lorem/posts
But I'm now trying to add one called "other"
so I would like to get
mydomain.com/directory/?name=lorem&action=posts&other=38291389
to
mydomain.com/directory/lorem/post/38291389
This is the .htaccess code I am using for the first example
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(\w+)(/(\w+))?$ /directory/?name=$1&action=$3
and here's the one I tried to make for the second example, but it doesn't work
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(\w+)(/(\w+))?$ /directory/?name=$1&action=$3&other=$4
Could somebody help me get this to work?