
02-14-2006, 12:46 AM
|
|
SEO Junior
|
|
Join Date: Feb 2006
Location: Färjestaden, Öland, Sweden
Posts: 2
|
|
|
htaccess - question
I have a htaccess-problem, I have submitted a Google sitemap to a site but the below htaccess-file prevent Google finding the confirmation file. How should I solve this, suppose it would work with a condition, but I´m completely lost.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.somedomain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.somedomain.com/$1 [R=301]
RewriteRule ^(.*)\.html http://www.somedomain.com/$1.php [L]
AddType application/x-httpd-php .php .htm .html
ErrorDocument 404 /404.shtml
|