Forum Moderators: open

Message Too Old, No Replies

Browser Redirection

         

sithicus

10:02 pm on May 29, 2003 (gmt 0)

10+ Year Member



How is the correct way to do browser redirection so i do not get the old pages removed from the listings?

jdMorgan

10:30 pm on May 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sithicus,

> do not get the old pages removed from the listings

Use any method which generates a 302-Moved Temporarily redirect.

Jim

sithicus

11:19 pm on May 29, 2003 (gmt 0)

10+ Year Member



Jim,
What if i need both pages, one for IE and one for Netscape.. right now I was using a script like this:

<script>version=parseInt(navigator.appVersion);if (navigator.appVersion.indexOf('5.')>-1){version=5};if (navigator.appVersion.indexOf('6.')>-1){version=6}; if (navigator.appVersion.indexOf('7.')>-1){version=7}; browser='OTHER'; if (navigator.appName=='Netscape'){browser='NS'+version;} if (navigator.appName=='Microsoft Internet Explorer'){browser='MSIE'+version;} if (navigator.appVersion.indexOf('MSIE 3')>0) {browser='MSIE3';} if(browser == 'NS5'){browser='NS6'};if (browser=='MSIE5') {window.location='http://www.computertables.biz/pages/products/options/atsxx.htm'}if (browser=='MSIE6') {window.location='http://www.computertables.biz/pages/products/options/atsxx.htm'}if (browser=='MSIE7') {window.location='http://www.computertables.biz/pages/products/options/atsxx.htm'}</script>

Will that cause problems for google? I've been running it for a couple weeks with no problem but then i noticed a problem so i removed it.. what would be the correct way to accomplish this?

jdMorgan

12:01 am on May 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sithicus,

Google does not "process" javascript, and will simply see that code as a collection of links, if at all.

You might want to consider detecting the browser and redirecting at the server level.

It seems to me that the description of your problem has changed. You will get better answers by clearly describing what you want to do, and the constraints you want to place on the solution.

Jim

outrun

12:03 am on May 30, 2003 (gmt 0)

10+ Year Member



Google doesnt read Javascript right now so you are alright, but unless you have links putting to those other pages google wont pick it up is that what you want? Aslo its good if you habe this

<script type="text/javascript" language="JavaScript">

to start your scipt instead of just <script>

regards,
Mark

Netizen

8:46 am on May 30, 2003 (gmt 0)

10+ Year Member



I would have though the question is: why do you need different pages for diferent browsers?

sithicus

3:42 pm on May 30, 2003 (gmt 0)

10+ Year Member



The reason I need two sites for different browsers is that I'm still working on the css to make it work in netscape so until that is finished I wanted to redirect to our old site. What I didn't want to do was do this in a way that will get a bunch of pages delisted in google because we have good placement as of right now.

Jim, You mentioned doing a server side redirect, can you point me in the direction of some resources for doing this, or if the javascript isn't going to throw up a black flag i can use that. Thanks for the info guys.
-Sith

sithicus

3:51 pm on May 30, 2003 (gmt 0)

10+ Year Member



Also,
Just to expand, right now the old site has really great google listing, the orginal plan was to keep those pages in google but when someone come to that page redirect them to the new site which is more comprehensive and if they don't have a browser that is compatiable with the new site then to just keep them where they are.
-Sith