I need a .htaccess that will show this URL:
but will in fact serve this URL:
Note that action.php can receive other GET parameters in the URL. The htaccess must be able to foward them too. The only difference between these 2 URL is the "fake" root directory which will reflect the "lang" GET parameter.
Is it possible to do such things with a .htaccess (I'm pretty sure it's possible)? Anyone have pointers on how to do this??
Thanks!
Edit1: I forgot to say that the rewrite rule should be only valid for "action.php" that is in "/wp-content/plugins/mailpress/mp-includes/".
Edit2: I have this currently in my .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
The following should do the trick
With regard to the edit of your question, here's a modified answer:
try this one:
here is the corresponding documentation from apache.