Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Main Page Url Rewrite

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2012

we have a confluence that is access by the url portal.company.com

I have set the start page in configuration to the News page of Intranet space, thus as soon as user go to portal.company,com he/she is redirected to portal.company.com/INTRANET/News

I need a simple url rewrite, so the user will see in the address bar just portal.company.com but the content should be from INTRANET/News... so I need rewrite, not redirect - any Ideas

I've tried tweek urlrewrite.xml (with the plugin installed):

<rule>

<from>^$</from>

<to type="redirect">/display/INTRANET/News</to>

</rule>

<outbound-rule>

<from>/display/INTRANET/News</from>

<to>^/$</to>

</outbound-rule>

However it throws exception:
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.charAt(String.java:686)
P.S. I'm testing on test machine (on live I have "port forwarding" so it is public through the IIS)

1 answer

1 accepted

0 votes
Answer accepted
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2012

This should help you get started: http://www.tuckey.org/urlrewrite/

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2012

I think I have a loop:

1. portal.company.com redirects to portal.company.com/homepage.action

2. in preferences I set homepage to be /INTRANET/News so it is redirected there

3. And what is weird, my outbound rule is treat like redirect to portal.company.com and we have a loop

P.S. I'm already using tuckey dlls for that

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events