PDA

View Full Version : Quick redirect question


ekrasny
02-12-2007, 06:02 PM
Just upgraded my site and some of the pages that ranked well had to be renamed (htm to php). I kept all the old pages and did a javascript redirect in the <head> section just like this below. Is this a correct way to do this or should I do a mod rewrite for each one of those pages in .htaccess file? If so, what is the syntax for redirecting one specific page to another specific page?

Thanks


<script language="Javascript1.1" src="ei_vert.js" type="text/javascript"></script>

<script type="text/javascript">document.location.href='http://www.mysite.com/'</script>
</head>

David Wallace
02-12-2007, 06:04 PM
Best way to do is to set up 301 redirect in .htaccess file. That will not only do the job or redirecting users to new pages but tells search engines old pages have moved to new location.

ekrasny
02-12-2007, 06:05 PM
Thanks David, but what is the syntax for redirecting one specific page to another (i.e. I don't want to set up any rules)

ekrasny
02-12-2007, 06:42 PM
http://www.the-art-of-web.com/system/rewrite/

Thanks pointing me in the right direction.

montyauto
02-27-2007, 06:40 AM
Correct whatever you do for the redirecting, first important think is to set it so the old link will find the new one.

porsh
03-01-2007, 01:46 PM
About Redirect please read more
Google's -#30 penalty (http://stakh.com/blogen/post_1171672947.html)

AND this..
First 6 common mistakes that prevent your Web site from show (http://stakh.com/blogen/post_1170326945.html)

;)