cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dispatcher Issues

Sunslayer86
Explorer
0 Kudos

have a web dispatcher running (version 7.00.11, multithreaded, ascii,

64-bit.) and am having issues with redirects from https to https.

I want to redirect https://domain.org to

https://www.domain.org/default.do, or for that matter any https url to

https://www.domain.org/default.do

What parameter do you use in the webdispatcher profile?

I have been trying: icm/http/redirect_xx

I have tried this one, and various other combinations.

icm/HTTP/redirect_0 = PREFIX=/, FROM=*, FROMPROT=https,

TO=https://www.domain.org/default.do, as well as a couple other combos.

Please let me know the parameter to accomplish this and what parameters

need to be used.

Any help is appreciated.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try this one

icm/HTTP/redirect_0 = PREFIX=/, TO=/default.do

Regards,

Reddy. A

Former Member
0 Kudos

Hi Chris,

Try with this:

icm/HTTP/redirect_0 = PREFIX=/, FROM=*.org, FROMPROT=https,

TO=https://www.domain.org/default.do

Best regards,

Sunslayer86
Explorer
0 Kudos

Thanks for the reply but that did not help.

hofmann
Active Contributor
0 Kudos

Hi,

The Web Dispatcher rewrite rule is used for rewriting the path on the server, not for the server itself.

Your problem looks more like a typical rewrite case. Normally, Apache with the rewrite module is used to fix this.

Redirect all:

Redirect / http://other.example.com/

RedirectMatch ^ http://other.example.com/

In your case (requiring the www):

RewriteEngine On

RewriteBase /

RewriteCond % !^www\.domain\.com$ [NC]

RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]

A good source for Apache rewrite is: http://wiki.apache.org/httpd/Rewrite

br,

Tobias