Announcement Announcement Module
Collapse
No announcement yet.
Spring Security and URL rewriting Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Security and URL rewriting

    Hi all !!

    I have problems with my URL rewriting.

    My Spring is running as ROOT.war

    My configuration is the following:

    web.xml

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
    /WEB-INF/applicationContext.xml
    /WEB-INF/applicationContext-security.xml
    </param-value>
    </context-param>

    <welcome-file-list>
    <welcome-file>index.htm</welcome-file>
    </welcome-file-list>


    applicationContext-security.xml

    <security:http auto-config="true" use-expressions="true" disable-url-rewriting="true">
    ...
    <security:form-login login-page="/index.htm" default-target-url="/start.htm" always-use-default-target="true" authentication-failure-url="/index.htm" />
    <security:logout />
    <session-management session-authentication-strategy-ref="sas" />
    </security:http>


    Lets assume that my URL is www.test.de
    The automatic redirect goes to www.test.de/index.htm

    But now I want to have www.test.de instead of www.test.de/index.htm

    With my rewrite rule I am always in a neverending loop with the browser message "The page isn't redirecting properly"

    Any good tipps for me?
Working...
X