I am sorry but you would need to elaborate on what is your requirement to
get more help.
First, from the rule, it seems that you want to re-write ALL the URL's to a
single URL. Is that true?
Second, for most use cases URI's (with or without query string) are dealt
with in rewrite rules. Being specific, I could not understand the use of
%{context-path}.
> I am sorry but you would need to elaborate on what is your requirement to
> get more help.
> First, from the rule, it seems that you want to re-write ALL the URL's to a
> single URL. Is that true?
> Second, for most use cases URI's (with or without query string) are dealt
> with in rewrite rules. Being specific, I could not understand the use of
> %{context-path}.
> Cheers
> Avlesh
> On Tue, Oct 27, 2009 at 9:28 PM, Ski3r <typo3hen...@gmail.com> wrote:
>> Hi!
>> I'm trying to point a subdomain to a page on the main domain but the
>> url result gets dublicated:
> What i'm trying to do is to redirect all the traffic that comes to "http:\\
> test.mydomain.com" to "www.mydomain.com/abc/Servlet?page=6..."
Underneath is what you need -
<rule>
<condition name="host" operator="equal">test.mydomain.com</condition>
<from>(.*)</from>
<to type="redirect">
http://www.mydomain.com/abc/Servlet?parent=sX&page=6</to>
</rule>
This would redirect ALL the requests for "test.mydomain.com" to "
www.mydomain.com" and that too to a FIXED url.
Cheers
Avlesh
On Wed, Oct 28, 2009 at 4:21 PM, Henrik Eriksson <typo3hen...@gmail.com>wrote:
> What i'm trying to do is to redirect all the traffic that comes to
> "http:\\test.mydomain.com" to
> "www.mydomain.com/abc/Servlet?page=6..."
> Best regards.
> 2009/10/28, Avlesh Singh <avl...@gmail.com>:
> > I am sorry but you would need to elaborate on what is your requirement to
> > get more help.
> > First, from the rule, it seems that you want to re-write ALL the URL's to
> a
> > single URL. Is that true?
> > Second, for most use cases URI's (with or without query string) are dealt
> > with in rewrite rules. Being specific, I could not understand the use of
> > %{context-path}.
> > Cheers
> > Avlesh
> > On Tue, Oct 27, 2009 at 9:28 PM, Ski3r <typo3hen...@gmail.com> wrote:
> >> Hi!
> >> I'm trying to point a subdomain to a page on the main domain but the
> >> url result gets dublicated:
> This would redirect ALL the requests for "test.mydomain.com" to "
> www.mydomain.com" and that too to a FIXED url.
> Cheers
> Avlesh
> On Wed, Oct 28, 2009 at 4:21 PM, Henrik Eriksson <typo3hen...@gmail.com>wrote:
>> Thanks for the answer!
>> What i'm trying to do is to redirect all the traffic that comes to
>> "http:\\test.mydomain.com" to
>> "www.mydomain.com/abc/Servlet?page=6..."
>> Best regards.
>> 2009/10/28, Avlesh Singh <avl...@gmail.com>:
>> > I am sorry but you would need to elaborate on what is your requirement
>> to
>> > get more help.
>> > First, from the rule, it seems that you want to re-write ALL the URL's
>> to a
>> > single URL. Is that true?
>> > Second, for most use cases URI's (with or without query string) are
>> dealt
>> > with in rewrite rules. Being specific, I could not understand the use of
>> > %{context-path}.
>> > Cheers
>> > Avlesh
>> > On Tue, Oct 27, 2009 at 9:28 PM, Ski3r <typo3hen...@gmail.com> wrote:
>> >> Hi!
>> >> I'm trying to point a subdomain to a page on the main domain but the
>> >> url result gets dublicated:
Nope. There is no bug in the filter.
Most probably, your code in the "www.mydomain.com/abc/Servlet" is trying to
perform a redirect on its own. Check your code.
To test, in <to> add this url - "
http://www.mydomain.com/some-imaginary-url.html". Assuming that you have no
such URL mapped to any sevlet, you should get a 404 status code with the URL
remaining exactly the same as imaginary url (without duplication).
Cheers
Avlesh
On Wed, Oct 28, 2009 at 5:17 PM, Henrik Eriksson <typo3hen...@gmail.com>wrote:
>> This would redirect ALL the requests for "test.mydomain.com" to "
>> www.mydomain.com" and that too to a FIXED url.
>> Cheers
>> Avlesh
>> On Wed, Oct 28, 2009 at 4:21 PM, Henrik Eriksson <typo3hen...@gmail.com>wrote:
>>> Thanks for the answer!
>>> What i'm trying to do is to redirect all the traffic that comes to
>>> "http:\\test.mydomain.com" to
>>> "www.mydomain.com/abc/Servlet?page=6..."
>>> Best regards.
>>> 2009/10/28, Avlesh Singh <avl...@gmail.com>:
>>> > I am sorry but you would need to elaborate on what is your requirement
>>> to
>>> > get more help.
>>> > First, from the rule, it seems that you want to re-write ALL the URL's
>>> to a
>>> > single URL. Is that true?
>>> > Second, for most use cases URI's (with or without query string) are
>>> dealt
>>> > with in rewrite rules. Being specific, I could not understand the use
>>> of
>>> > %{context-path}.
>>> > Cheers
>>> > Avlesh
>>> > On Tue, Oct 27, 2009 at 9:28 PM, Ski3r <typo3hen...@gmail.com> wrote:
>>> >> Hi!
>>> >> I'm trying to point a subdomain to a page on the main domain but the
>>> >> url result gets dublicated: