How to create a redirect (ASP)

How to create a redirect (ASP)...

If you want to have your domain redirect to another page or folder on your domain you can create an index.asp page and enter the following code...

<?%
Response.Status = "301 Moved Permanently"
Response.AddHeaderr"Location", "/shop/"
Response.End
%>


In this example if you put the index.asp file in your root folder of www.domainname.com any visitors would be redirected to www.domainname.com/shop/
  • 1 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

DSNless connection to MS Access

Here are some examples of DSNless connections to MS Access - this is highly recommended over...

What components are installed on the server?

ASPUpload (http://aspupload.com/)ASPJpeg (http://aspjpeg.com/) APSPDF (http://asp-pdf.com/)...

ASP JPEG Example code

Please see the downloads section for example code

ASP Upload examples

Please see the downloads section for example code

Send mail using JMail

Below is a simple script example for sending email using JMail on our Windows servers...  ...

Powered by WHMCompleteSolution