Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Point subdomain - newbie
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ski3r  
View profile  
 More options Oct 27, 11:58 am
From: Ski3r <typo3hen...@gmail.com>
Date: Tue, 27 Oct 2009 08:58:12 -0700 (PDT)
Local: Tues, Oct 27 2009 11:58 am
Subject: Point subdomain - newbie
Hi!
I'm trying to point a subdomain to a page on the main domain but the
url result gets dublicated:

http://test.mydomain.com/abc/Servlet?parent=sX&page=6/abc/Servlet?par...

This is the code I'm using:

    <name>Test Sub Domain Name Check</name>
    <condition name="host" operator="equal">test.mydomain.com</
condition>
    <from>(.*)</from>
    <to type="redirect">%{context-path}/abc/Servlet?
parent=sX&amp;page=6</to>
   </rule>

How should I write it?
Best regards,


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avlesh Singh  
View profile  
 More options Oct 27, 10:12 pm
From: Avlesh Singh <avl...@gmail.com>
Date: Wed, 28 Oct 2009 07:42:11 +0530
Local: Tues, Oct 27 2009 10:12 pm
Subject: Re: Point subdomain - newbie

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


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henrik Eriksson  
View profile  
 More options Oct 28, 6:51 am
From: Henrik Eriksson <typo3hen...@gmail.com>
Date: Wed, 28 Oct 2009 11:51:12 +0100
Local: Wed, Oct 28 2009 6:51 am
Subject: Re: Point subdomain - newbie
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>:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avlesh Singh  
View profile  
 More options Oct 28, 7:19 am
From: Avlesh Singh <avl...@gmail.com>
Date: Wed, 28 Oct 2009 16:49:21 +0530
Local: Wed, Oct 28 2009 7:19 am
Subject: Re: Point subdomain - newbie

> 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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henrik Eriksson  
View profile  
 More options Oct 28, 7:47 am
From: Henrik Eriksson <typo3hen...@gmail.com>
Date: Wed, 28 Oct 2009 12:47:21 +0100
Local: Wed, Oct 28 2009 7:47 am
Subject: Re: Point subdomain - newbie

Hi again!
It almost works, it still get's dublicated and I'll be redirected to:
http://www.mydomain.com/abc/Servlet?parent=sX&page=6<http://www.mydomain.com/abc/Servlet?parent=sX&page=6>
http://www.mydomain.com/abc/Servlet?parent=sX&page=6<http://www.mydomain.com/abc/Servlet?parent=sX&page=6>
Is it a bug maby?
Best regards,

2009/10/28 Avlesh Singh <avl...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avlesh Singh  
View profile  
 More options Oct 28, 8:37 am
From: Avlesh Singh <avl...@gmail.com>
Date: Wed, 28 Oct 2009 18:07:29 +0530
Local: Wed, Oct 28 2009 8:37 am
Subject: Re: Point subdomain - newbie

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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google