Forum Moderators: open

Message Too Old, No Replies

Authentication Failure Issue

Anyone know a 301 workaround?

         

lexipixel

2:48 pm on Sep 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have a site that has an .htaccess file in place to deal maily with (2) issues;

- www. v non-www
- .htm v .html

With the following .htaccess in place, Yahoo! Site Authentication fails;

#
Options FollowSymLinks
RewriteEngine On
#
# add 'www' to any URL which does not use it for a prefix
#
RewriteCond %{HTTP_HOST} ^example.tld [NC]
rewriterule ^(.*)$ http://www.example.tld/$1 [L,R=301]
#
# rename any URL with '.html' extension to '.htm'
#
RedirectMatch 301 (.*)\.html$ http://www.example.tld$1.htm
#

It appears that Yahoo's "Site Explorer" defaults to attempting the non-www URL, and is hitting a 301 and fails the site.

Any ideas?

lexipixel

6:28 am on Sep 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm an idiot! --- but not stupid enough to not admit it.

Other sites I've setup for Yahoo authentication have been just http://domain-name.tld/ (no "www" in URL).

I did not think or realize all I had to do was add the 'www' to pass through the .htaccess unscathed, and viola' --- authenticated!

Signed,

Iam A. NiDiot