More 301 .htacess help

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

More 301 .htacess help

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: More 301 .htacess help

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply