Forum Moderators: open

Message Too Old, No Replies

403 Redirect Repercussions?

         

mattharper

9:43 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



User on my site clicks the link mysite.com/shortcut

shortcut is a directory on my server with a default asp page only with the following code in the file.

Will my site have problems indexing with search engines? If so what are my other options in handling this redirect?

Thank you
Matt

<<%Response.Buffer = True
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
Response.Redirect "../default.asp?action=category&ID=9&order=rank&sort=asc&limit=0" %>>

Xoc

11:38 pm on Feb 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, a couple of things. A user can turn off processing redirects. In which case they will get an entirely blank page, because the redirect won't work.

Google should process the redirect and index the final page. However, I don't think it will get the kind of weight it would get if you delivered content at the shortcut page.

Why can't you put the processing that happens in the home page into a server-side include and include that code into the shortcut page, instead of redirecting?

plumsauce

11:36 am on Mar 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you really mean 403?

10.4.4 403 Forbidden

The server understood the request, but is refusing to fulfill it.
Authorization will not help and the request SHOULD NOT be repeated.
If the request method was not HEAD and the server wishes to make
public why the request has not been fulfilled, it SHOULD describe the
reason for the refusal in the entity. If the server does not wish to
make this information available to the client, the status code 404
(Not Found) can be used instead.

Why not a 301?

In which case,(javascript syntax)

Response.Buffer=true;
Response.Status="301 Moved Permanently";
Response.Addheader("Location: [whatever");...]
Response.End();