Scott,

How about adding a filter that checks the url and if it does not see 
"www.sitename.com" then it causes a redirect to the
same PATH on the "www.sitename.com" path.  The only problem might be any 
bookmarked or outside form submission pages if
they have parameters to go with them.  But there are ways around that tool.

Regards,
David Friedman / [EMAIL PROTECTED]

-----Original Message-----
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 09, 2006 9:26 AM
To: user@struts.apache.org
Subject: URL needs www appended


Hello,



I have a struts site in which all views are called from the action.
Problem I encountered, is as follows: When users search for my site in
the search field area, the site shows up, but when the user click the
link the "www" is not there. Google sees my site as http://sitename.com
<http://sitename.com/> .



This causes huge problems for me, as I have a site certificate that is
linked to www.sitename.com <http://www.sitename.com/> . I thought about
just using some type of index.jsp page and redirecting them, but then
the bots have trouble indexing my site.  The site name is
[http://www.theuniquepear.com]. There is also the problem of a user
putting in http://theuniquepear.com <http://theuniquepear.com/>  in the
browser bar. What happens is they get a bad or no certificate with a
popup. Not good.



If this was a model1 site, it would be no problem using a full url page
to page but it is not. I have extended the processor, but do not see
where I can add this either. Someone also mentioned a filter, but I
could not find any working examples of how this would work.



Does anyone have any ideas that may assist me in this dilemma?



Sincerely

Scott









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to