OSCC
02-28-2005, 12:14 AM
Google has apparently decided that since I my pages show up as both http://www.mysite.com
http://mysite.com that I have duplicate pages and has killed my site. I used to be in the top five but now I am not in the top 300.
Where can I get help on using my htaccess file to force all requests for http://mysite.com to put http://www.mysite.com in the url box?
I cannot use mod rewrite, the site crashs.
Here is my htaccess
ErrorDocument 404 /page_not_found.htm
ErrorDocument 403 /page_image_ forbidden.htm
SetEnvIfNoCase Referer "^http://www.mysite.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.mysite.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://mysite.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://mysite.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>
Thanks OSCC
http://mysite.com that I have duplicate pages and has killed my site. I used to be in the top five but now I am not in the top 300.
Where can I get help on using my htaccess file to force all requests for http://mysite.com to put http://www.mysite.com in the url box?
I cannot use mod rewrite, the site crashs.
Here is my htaccess
ErrorDocument 404 /page_not_found.htm
ErrorDocument 403 /page_image_ forbidden.htm
SetEnvIfNoCase Referer "^http://www.mysite.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.mysite.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://mysite.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://mysite.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>
Thanks OSCC