You do not need a RewriteCond here, the RewriteRule directive is perfectly
capable of capturing the request uri path.
If you don't want the URL to change, then perhaps you should use AliasMatch
instead of mod_rewrite. If you want to change the URL, use RedirectMatch
instead.
Using mod_rewrite
On 4/3/2022 12:34 PM, Aitor Iturriondobeitia wrote:
Hello, I'm new to this topic and I'm finding it difficult. Let's see
if you can help me please.
I am trying to remove the contextroot from my application.
For example, I have the following URL that calls me:
www.domain.com/REDF00K/form.xhtml
Hello, I'm new to this topic and I'm finding it difficult. Let's see if you
can help me please.
I am trying to remove the contextroot from my application.
For example, I have the following URL that calls me:
www.domain.com/REDF00K/form.xhtml
and I want to eliminate, in the rewrite, the REDF00K