[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd] =?UTF-8?B?SGVscCBHb3IgYsOhc2ljbyAoIDotKSApIHJld3JpdGU=?=
From:       Aitor Iturriondobeitia <laudio.info () gmail ! com>
Date:       2022-04-03 16:34:12
Message-ID: CA+kKrXqW76Autrc3yM_cVtefh0f82yyhXS8JjTdvQgh3mNVHkQ () mail ! gmail ! com
[Download RAW message or body]

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 leaving
www.domain.com/form.xhtml
in such a way that if they call me to www.domain.com/REDF00K/form.xhtml it
would resolve internally to www.domain.com/form.xhtml
for this I am using

RewriteEngine On
LogLevel debug rewrite:trace3
RewriteRule ^/REDF00K/$ /$1 [R=301,NC,L]

but it's not working for me
Can you help me?

Thank you very much

[Attachment #3 (text/html)]

<div dir="auto"><div dir="auto">Hello, I&#39;m new to this topic and I&#39;m finding \
it difficult. Let&#39;s see if you can help me please.</div><div dir="auto">I am \
trying to remove the contextroot from my application.</div><div dir="auto">For \
example, I have the following URL that calls me:</div><div dir="auto"><a \
href="http://www.domain.com/REDF00K/form.xhtml">www.domain.com/REDF00K/form.xhtml</a></div><div \
dir="auto">and I want to eliminate, in the rewrite, the REDF00K leaving <a \
href="http://www.domain.com/form.xhtml">www.domain.com/form.xhtml</a></div><div \
dir="auto">in such a way that if they call me to <a \
href="http://www.domain.com/REDF00K/form.xhtml">www.domain.com/REDF00K/form.xhtml</a> \
it would resolve internally to <a \
href="http://www.domain.com/form.xhtml">www.domain.com/form.xhtml</a></div><div \
dir="auto">for this I am using</div><div dir="auto"><br></div><div \
dir="auto">RewriteEngine On</div><div dir="auto">LogLevel debug \
rewrite:trace3</div><div dir="auto">RewriteRule ^/REDF00K/$ /$1 \
[R=301,NC,L]</div><div dir="auto"><br></div><div dir="auto">but it&#39;s not working \
for me</div><div dir="auto">Can you help me?</div><div dir="auto"><br></div><div \
dir="auto">Thank you very much</div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic