OFF-TOPIC how to do a 301 Redirect?

J

James Ivey

OFF-TOPIC

Hi Everyone,

Sorry for the off-topic post, but I know there are some knowledgeable folks
in here that might be able to help. I built my whole website in FP, if it
matters :eek:)

Anyway, I just changed my whole website from .htm to .php files. Now in
Google, for example, it comes up with a "300 Multiple Choice" page instead
of valid links to my pages.

My site is http://www.iampeth.com

Do a Google search on "penmanship" and you'll see what I mean.

I'm told I need to create a .htaccess file for a 301 Redirect. But I can't
get it to work. Here's what I've tried:

Redirect 301 index.htm http://www.iampeth.com/index.php
Redirect 301 lessons.htm http://www.iampeth.com/lessons.php
Redirect 301 books.htm http://www.iampeth.com/books.php

And I'm still getting the 300 page.

Can anyone tell me how to create a 301 Redirect .htaccess file?

James Ivey
 
S

Steve Easton

You have more issues than just needing a redirect.
I tried to open your site and the browser acted like it was downloading files for about 10 minutes
but all there was, was a blank page with this as it's source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I can't open the site.

However, if I use this link http://www.iampeth.com/index.php it opens.

So, you don't need a redirect, you need to change the default document on the server to index.php
instead of index.html

You should be able to do it via the Web Masters Control Panel.


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
J

James Ivey

Hi Steve,

Thanks a bunch for checking.

I've been on the phone with 1and1 Tech Support, and we were probably banging
around on it when you tried.

I think I've got it sorted out now. I needed a leading slash on the first
filename, like this:

Redirect 301 /index.htm http://www.iampeth.com/index.php
Redirect 301 /lessons.htm http://www.iampeth.com/lessons.php
Redirect 301 /books.htm http://www.iampeth.com/books.php

Give it a try
http://www.iampeth.com
http://www.iampeth.com/lessons.htm
http://www.iampeth.com/books.htm

Anything I'm missing?

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top