Page 1 of 1

More 301 .htacess help

Posted: Mon Jul 23, 2007 11:39 pm
by rj
I had to move my blog into the root directory to get google rank to move up. It did and thats all swell, helped a lot!

But I had to move the old website files into a directory because they would not load due to some sort of blog business I do not understand. This caused any .htm file in the root to default to the index.php and load the blog. I do not have nor need the index.html file any longer. Only the sub pages

Now google webtools gives a 404 to my 804 external links of these htm pages that read:
http://domain.com/my.htm
but are now in
http://domain.com/website/my.htm

But when you actually click on the old link it defaults to the blog.
Google Webtools shows them as 404s but they do not result in 404s but rather load the blog.

What I need is some sort of redirect code for this.
The one I put in doesn't seem to work, but I may be doing it wrong.
And there is now a long string of S9y rewrites in the .htacess file I dont really understand. I think we all have that file inside our blog directory but not in our root.

Or some other answer?

Am I making sense yet? :)

Thanks...

RJ

Re: More 301 .htacess help

Posted: Tue Jul 24, 2007 2:02 pm
by garvinhicking
Hi!

s9y emits a 404 header and still shows the blog. :)

As for the redirect, I can only repeat what I've told the last 5 times: Please go to a rewrite-specific forum, this has no longer really anything to do with Serendipity. :-)

Best regards,
Garvin

Posted: Sun Nov 04, 2007 12:35 am
by carl_galloway
Garvin is there any chance of s9y including a canonical redirect from non-www to www like the latest version of WP now has?

Posted: Mon Nov 05, 2007 12:53 pm
by garvinhicking
Hi!

I'm actually against redirections like this, and much prefer custom .htaccess rules for that.

It could be done, but I'm not the one going to do it, because I dislike it when being done by a software :)

Regards,
Garvin