Go Back   Internet Business Forums > Design & Development

Reply
 
Thread Tools Display Modes
Old 31-01-2007, 02:48 PM   #1 (permalink)
Senior Member
 
Join Date: Jan 2007
Posts: 383
Lightbulb 301 redirects on a windows server

I found this, but it only works if the original page that the redirect is is an .asp page. I'd like to change a .htm page into another page

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.automotivetouchup.com"
%>

I'd also love to take my affiliate program and allow my affiliate links to count as inbounds. The page that the affiliate link goes to looks like this:


<%
MerchantID = Request.QueryString("MerchantID")
' Perform DefaultParameter processing.
If IsEmpty(MerchantID) Or MerchantID = "" Then
MerchantID = 0
End If

session("mallid")=MerchantID

' find next page to display
ipaddress = (Request.ServerVariables("SERVER_NAME"))

whatsnext = (Request.QueryString("NextPage"))
' Perform DefaultParameter processing.
If IsEmpty(whatsnext) Or whatsnext = "" Then
whatsnext = "index.htm"
End If

gostring = "http://" & ipaddress & "/" & whatsnext

Response.Redirect (gostring)

%>

Is there something I'd need to change to make them count as a backlink using a 301 redirect, but still keep tracking? Any help is much, much appreciated.
hot_shot is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 01:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.