SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-14-2006, 12:46 AM
xpat xpat is offline
SEO Junior
 
Join Date: Feb 2006
Location: Färjestaden, Öland, Sweden
Posts: 2 xpat is on a distinguished road
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
Reply With Quote
  #2  
Old 02-14-2006, 07:45 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

It looks like you're trying to redirect from example.com to www.example.com, and at the same time redirect your old html pages to new php ones... is that right?

but I don't get these htaccess rules at all.... is it new and did it ever work?

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #3  
Old 02-14-2006, 07:52 AM
xpat xpat is offline
SEO Junior
 
Join Date: Feb 2006
Location: Färjestaden, Öland, Sweden
Posts: 2 xpat is on a distinguished road
Hi, yes it works, the problem was (I solved it by deleating the htaccessfile for a while) that Google sitemaps wanted a identification file. It is a html-file which didnt work, so instead of rewriting the rule-set I deleted the file. Verified the sitemap-file and undeleted the htaccess-file....
Reply With Quote
  #4  
Old 03-10-2007, 07:10 PM
WebGeek182's Avatar
WebGeek182 WebGeek182 is offline
SEO Junior
 
Join Date: Mar 2007
Posts: 17 WebGeek182 is on a distinguished road
Next time add this to your .htaccess:
Code:
RewriteCond %{HTTP_USER_AGENT} !^Google-Sitemaps
Here's a great .htaccess reference if you need more info.
__________________
Web Design :: Learn SEO

Last edited by WebGeek182 : 03-13-2007 at 03:40 PM.
Reply With Quote
  #5  
Old 03-13-2007, 12:37 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi WebGeek,

I haven't had a chance to welcome you to the forum; so welcome

That link's still broken so I've removed it... again.

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #6  
Old 03-13-2007, 03:41 PM
WebGeek182's Avatar
WebGeek182 WebGeek182 is offline
SEO Junior
 
Join Date: Mar 2007
Posts: 17 WebGeek182 is on a distinguished road
Hey Paz!

Thank you for the warm welcome! It's great to be here. My apologies on the broken link! It should be working now.
__________________
Web Design :: Learn SEO
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 11:58 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.