Forum Moderators: phranque

Message Too Old, No Replies

mydomain.com to resolve into mydomain.com/index.htm

plethora of outside links and framed page headache

         

mifi601

2:14 am on Nov 2, 2004 (gmt 0)

10+ Year Member



I have had this site for a while and I built it using frames.

It has become a complete code mess and I would like to slowly clean it up, without upsetting my excellent SE rankings.

One of the problems I have is the original frame buster script.

The script asks whether /index.htm was on top and if not, loaded the index page and the right frame.

Result being a URI of something like

http;//www.mydomain.com/index.htm?http;//www.mydomain.com/index.htm&1&insideframe.htm

the problem was that this URI was also the result of http;//www.mydomain.com/, to which a lot of my links go.

As a result, many people linked to the URI with the query strings, which is now already a PageRank 5, the index.htm being a PR 6.

Question:

How do I redirect http;//www.mydomain.com/ to http;//www.mydomain.com/index.htm so that the index.htm part shows and the browser sees http;//www.mydomain.com/index.htm and does not redirect to http;//www.mydomain.com/index.htm?http;//www.mydomain.com/index.htm&1&insideframe.htm

Am I making myself clear?

jdMorgan

9:45 pm on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I understand the question, RedirectMatch should work:

RedirectMatch 301 ^/$ http://www.mydomain.com/index.htm

Jim

mifi601

10:06 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



may I ask what redirect match does?

jdMorgan

10:18 pm on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sure, here's the Apache RedirectMatch [httpd.apache.org] documentation.

Jim

mifi601

10:34 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



thanks Jim - duh ;)

mifi601

10:42 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



Jim thank you again, sure did the trick!