Skip to main content

redirect_n => This web page has a redirect loop

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
Anonymous

Hello,

I've deployed web site with /
I would like my website example.com will redirect to www.example.com

I've added

But when I try to load example.com or www.example.com I get the error "This
web page has a redirect loop"

What can I did wrong?

I'm using glassfish 3.1.2.2

Thanks,
Alona

--
View this message in context: http://glassfish.10926.n7.nabble.com/redirect-n-This-web-page-has-a-redi...
Sent from the GlassFish Users mailing list archive at Nabble.com.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cetina
Offline
Joined: 2008-01-30

example.com and www.example.com are the same Thats why you have a loop, you
are sending to the same page again and again.

I have this kind of configuration (when user dont use www, just "append to
the url") in my apache server.
IIRC you can set the same in glassfish with a virtual server or vietual
host.
El 07/03/2013 06:25, "AlonaSoftEng" escribió:

> Hello,
>
> I've deployed web site with /
> I would like my website example.com will redirect to www.example.com
>
> I've added url-prefix=http://www.example.com">
>
> But when I try to load example.com or www.example.com I get the error
> "This
> web page has a redirect loop"
>
> What can I did wrong?
>
> I'm using glassfish 3.1.2.2
>
> Thanks,
> Alona
>
>
>
>
>
> --
> View this message in context:
> http://glassfish.10926.n7.nabble.com/redirect-n-This-web-page-has-a-redi...
> Sent from the GlassFish Users mailing list archive at Nabble.com.
>