on 04-27-2009 9:26 PM
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.
Hi,
Try this one
icm/HTTP/redirect_0 = PREFIX=/, TO=/default.do
Regards,
Reddy. A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
Try with this:
icm/HTTP/redirect_0 = PREFIX=/, FROM=*.org, FROMPROT=https,
TO=https://www.domain.org/default.do
Best regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.