|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Point subdomain - newbieHi! 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?parent=sX&page=6 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&page=6</to> </rule> How should I write it? Best regards, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "UrlRewrite" group. To post to this group, send email to urlrewrite@... To unsubscribe from this group, send email to urlrewrite+unsubscribe@... For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Point subdomain - newbieI 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 <typo3henrik@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "UrlRewrite" group. To post to this group, send email to urlrewrite@... To unsubscribe from this group, send email to urlrewrite+unsubscribe@... For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Point subdomain - newbieThanks 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 <avlesh@...>: > 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 <typo3henrik@...> wrote: > >> >> 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?parent=sX&page=6 >> >> 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&page=6</to> >> </rule> >> >> How should I write it? >> Best regards, >> >> > >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "UrlRewrite" group. To post to this group, send email to urlrewrite@... To unsubscribe from this group, send email to urlrewrite+unsubscribe@... For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Point subdomain - newbieWhat 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 <typo3henrik@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "UrlRewrite" group. To post to this group, send email to urlrewrite@... To unsubscribe from this group, send email to urlrewrite+unsubscribe@... For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Point subdomain - newbieHi again!
It almost works, it still get's dublicated and I'll be redirected to: http://www.mydomain.com/abc/Servlet?parent=sX&page=6http://www.mydomain.com/abc/Servlet?parent=sX&page=6 Is it a bug maby? Best regards, 2009/10/28 Avlesh Singh <avlesh@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "UrlRewrite" group. To post to this group, send email to urlrewrite@... To unsubscribe from this group, send email to urlrewrite+unsubscribe@... For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Point subdomain - newbieNope. 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 <typo3henrik@...> wrote: Hi again! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "UrlRewrite" group. To post to this group, send email to urlrewrite@... To unsubscribe from this group, send email to urlrewrite+unsubscribe@... For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |