Page 1 of 1
Google verification
Posted: Sun Nov 11, 2007 7:05 pm
by Don Chambers
Google utilities require verification. I selected the method of adding a specified google_generated_filename.html to my web root.
This worked just fine a week or so ago. Now google is telling me it is receiving a 404 not found error. The file is definitely there.
I have not change my .htaccess file, but it does contain this:
Code: Select all
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]
Is that part of the problem, and if so, what should I do to correct it?
Re: Google verification
Posted: Sun Nov 11, 2007 7:25 pm
by garvinhicking
http://board.s9y.org/viewtopic.php?p=65 ... ght=#65679?
(hope babelfish can help, otherwise I'll try tomorrow

)
Re: Google verification
Posted: Sun Nov 11, 2007 8:20 pm
by chickens
garvinhicking wrote:(hope babelfish can help, otherwise I'll try tomorrow

)
Google translator seems to work:
http://translate.google.com/translate?u ... n&ie=UTF-8
Posted: Sun Nov 11, 2007 8:25 pm
by Don Chambers
That did not seem to work. Here is my entire htaccess:
Code: Select all
# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php
RewriteEngine On
RewriteBase /
RewriteRule ^((archives/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.html)/?) index.php?/$1 [NC,L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [NC,L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^comments/(.*) index.php?url=/comments/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]
RewriteRule ^google4e610ac711a08486.html google4e610ac711a08486.html [L]
<Files *.tpl.php>
deny from all
</Files>
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
Not sure if it matters or not, but when s9y was originally configured, there was no rewriting. When I was messing around with the sitemap generator, I changed that to Use Apache mod_rewrite.
This is a shared server.
Posted: Sun Nov 11, 2007 8:49 pm
by kleinerChemiker
put the line on the beginning of the rewrite rules.
but better would be, if you use a meta-tag.
Posted: Sun Nov 11, 2007 9:00 pm
by carl_galloway
I actually used the html head nugget and went the meta tag route as suggest by kleinerChemiker, it's far easier than stuffing around with your .htaccess or server 404 rules.
Posted: Sun Nov 11, 2007 9:03 pm
by Don Chambers
kleinerChemiker wrote:put the line on the beginning of the rewrite rules.
before, or after, RewriteBase, or does it matter?
but better would be, if you use a meta-tag.
Why?
Posted: Sun Nov 11, 2007 9:24 pm
by kleinerChemiker
.htaccess is autogenerated by s9y. if it is rewritten, all your changes get lost.
after the rewrite base
Posted: Sun Nov 11, 2007 9:36 pm
by Don Chambers
Thanks kleinerChemiker.