|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I know next to nothing about vb but looks like you're going to implement a temporary redirect here.
Verify the result here http://www.seoconsultants.com/tools/headers.asp Code:
<% ' Permanent redirection Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.somacon.com/" Response.End %> Quote:
|
|
|||
|
wednesday is right, you are showing a temporary redirect. this is how dot net does it
<script runat="server"> private void Page_Load(object sender, System.EventArgs e) { response.status = "301 moved permanently"; Response.AddHeader("Location","http://www.domain.com/file-location.html"); } </script> The other way you can do it is in IIS with a windows server or httaccess (something like that) in linux |
|
||||
|
ok I have the 301 redirect doe working, but I need to know how to include script so that if the link is www.mysite.com/page.asp?product1 it goes to one page, and if it is www.mysite.com/page.asp?product2 it goes to another page...
|
|
||||
|
All done I used this script:
if(Request.querystring("WCI") = "Number1") then Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.mysite.com/number1" Response.End end if if(Request.querystring("WCI") = "Number2") then Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.mysite.com/number2" Response.End end if Does anyone else find this site a bit like 'talking to the monkey'? You know how the minute you ask someone something it suddenly occurs to you how to do it, well I always thought a lot of developers have little toy animals or trinkets on their desk so that they can just ask them and then work it our instead of having to find someone to ask everytime they get stuck - me and my course mate used to call it talking to the monkey anyone else get that phenomenen? |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |