ljwhite

Well-Known Member
Jun 20, 2005
363
0
166
When i open abccares.com(it is on virtual server), it is said: abccares.com is attempting to read from www.abccares.com. This is a potentially insecure operation. Do you want to allow it?
What is the problem? What shall i do? Many thanks in advance!
 

webignition

Well-Known Member
Jan 22, 2005
1,876
2
166
You could have chosen to mention that this was a security popup on a Flash movie . . .

This only occurs when browsing to example.com and not when browsing to www.example.com.

You might then want to set up a redirect in the relevant VirtualHost to redirect example.com to www.example.com, therefore preventing people browsing to example.com hence preventing the security warning.
 

ljwhite

Well-Known Member
Jun 20, 2005
363
0
166
Thanks for your help. But how could i set redirect? I saw one option called "Redirects" in cpanel. I clicked it, and i saw this:
Add Redirect:
http://abccares.com/ >> http://
...
It seems here is not right place. So what shall i do?
 

webignition

Well-Known Member
Jan 22, 2005
1,876
2
166
You'd have to, in some way, change the settings in your main Apache config.

A standard mod_alias redirect won't work as that can only match against the URL path not the full URL.

You might have to determine how to figure out whether someone is browsing to example.com as opposed to www.example.com.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Putting

Code:
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
in an .htaccess file will redirect the requests to the url with www in it.