PDA

View Full Version : 301 redirects was this done correctly?



rjjj111
02-16-2010, 03:56 PM
i got these suggestions from a web analytics guy.

You should redirect https://www.biblebible.com to a non-ssl page. Visitors in IE will get an error. They may get to this page from the cart, if they modify the url in the address bar to try to get out of the cart and head back to the homepage.
You should also redirect Audio Bible on CD, DVD, MP3, iPod, tape, CD-ROM (http://biblebible.com) to Audio Bible on CD, DVD, MP3, iPod, tape, CD-ROM (http://www.biblebible.com). It can help with SEO.

so........

i had my webguy do it for me....his reply is below......

how did you redirect the pages?
Russ2/16/2010 2:41:48 PM
yes I use a response.redirect
Russ2/16/2010 2:43:30 PM
for that I created a new website in IIS
Russ2/16/2010 2:43:39 PM
for biblebible.com
rick2/16/2010 2:43:46 PM
do you know how to do a 301 redirect?
Russ2/16/2010 2:43:53 PM
and am forwarding it to Audio Bible on CD, DVD, MP3, iPod, tape, CD-ROM (http://www.biblebible.com)
Russ2/16/2010 2:44:12 PM
yea is that what you want?
Russ2/16/2010 2:45:05 PM
I can do that in the headers
Russ2/16/2010 2:47:39 PM
using IIS should give a good 301
did he do this correctly? is this a 301 redirect? how can you tell if it is a 301 redirect besides taking his word for it?

wige
02-16-2010, 04:49 PM
non-www to www is a correct 301 redirect. However, the https to http is a 302 redirect.

I think the response.redirect should be replaced with: Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.aspcode.net/newpage");

morestar
04-12-2010, 12:46 PM
--edit-- I didn't see a line in wige's response...he covered it, my apologies...

rjjj111
04-12-2010, 03:58 PM
thank you........

i will get my webguy to double check, to make sure he did it as you suggested....

is there some way to double check what he has done from the outside world and not take his word for it?

just curious?

morestar
04-12-2010, 04:11 PM
I believe there are tools that can help you with this but I'm not sure exactly which ones.

I just tried Tamper Data. It's a Firefox plugin and it's pretty neat. It helps you check the status of files being called when your page is loaded. It's tell you which ones if any are causing your page to take long to load.

I just checked out a JavaScript redirect I placed in an old page today, because the page was an .htm extension and I don't have access to the server I couldn't 301 redirect properly - that's not the point - so just checked to see if I visited a JavaScript redirect page if Tamper Data would notice it and I couldn't find anything accept this tool which allows you to check server headers (http://www.seoconsultants.com/tools/headers) may be able to help you. I tried with the JavaScript redirected page and it came back with a HTTP Status Code - 200 OK (The request has succeeded). I thought it would at least tell me if it redirected successfully or something to that effect.

I think it will work with your code as your script is server side rather than client side...

rjjj111
04-12-2010, 04:12 PM
thanks for the info...............

wige
04-12-2010, 04:44 PM
I use a variety of tools, from Firebug (Net tab, check the type of file you want to test) to Tamper Data, to Fiddler, which gives the best overall picture of the data being transferred between the browser and the server.

rjjj111
04-12-2010, 04:46 PM
got ya..........thanks.

i learn something new everyday!!!!!!!!!!!!