• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: redirecting my page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: redirecting my page


  • Subject: Re: redirecting my page
  • From: Kieran Kelleher <email@hidden>
  • Date: Sat, 20 Mar 2004 07:44:29 -0500

Actually I use this same technique for giving access to every WO Apps on one domain. In the sample below index.html default file is being loaded to the client which immediately redirects to my main WO site app.

For example, I have a simple email opt -out app, so I have a file emailoptout.html in my /Library/WebServer/Documents folder and its contents use a JavaScript to redirect to that WO app address when the user enters:

http://www.domainname.com/emailoptout

it goes to http://www.domainname.com/cgi-bin/WebObjects/EmailOptout.woa.

I like this simple technique because I don't have to mess with Apache config files and the results are instant. And it allows me to put simple URLs on member emails and USPS mail.

-Kieran


________________________________________________________________
Config = OS X 10.3.2 / Java 1.4.1 / WO 5.2.2 / MySQL 4.0.18 / Connector-J 3.0.11
Blog: http://webobjects.webhop.org/



On Mar 19, 2004, at 5:21 PM, Kieran Kelleher wrote:

Here is what I do, but it depends on java script support, which is pretty ubiquitous anyway.

The nice thing is that it appears transparent to the user without the ugly redirect message. Just modify this for your URL or IP address and copy and paste this into file named index.html and put it in /Library/WebServer/Documents/ folder



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
	<title>YOUR WEBSITE NAME HERE</title>

	<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[

window.location="http://<my ip address>/cgi-bi/WebObjects/xxx.woa"

// ]]>
</script>

</head>
<body bgcolor="#FFFFFF">
</body>
</html>


________________________________________________________________
Config = OS X 10.3.2 / Java 1.4.1 / WO 5.2.2 / MySQL 4.0.18 / Connector-J 3.0.11
Blog: http://webobjects.webhop.org/



On Mar 19, 2004, at 4:03 PM, David LeBer wrote:

HTML redirect?

<html>
<head>
<meta http-equiv="REFRESH" content="3; URL="http://<my ip address>/cgi-bi/WebObjects/xxx.woa">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> You will be redirected to theApplication in 3 seconds, If your browser doesn't automatically load, click <a href="http://<my ip address>/cgi-bi/WebObjects/xxx.woa">HERE</a>.
</body>
</html>


On 19-Mar-04, at 3:02 PM, Kranthi Sagar Borra wrote:

Hi,

I wanted users to access my web objects application(http://<my ip address>/cgi-bi/WebObjects/xxx.woa) when they give just
http://<my ip address>. Presently this is displaying me the index.html file. So how can I change this default page.


Thank you

Regards,
Kranthi Sagar B,
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.




;david

--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >redirecting my page (From: "Kranthi Sagar Borra" <email@hidden>)
 >Re: redirecting my page (From: David LeBer <email@hidden>)
 >Re: redirecting my page (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Problem with images in framework during split
  • Next by Date: RE: Problem with images in framework during split
  • Previous by thread: Re: redirecting my page
  • Next by thread: RE: redirecting my page
  • Index(es):
    • Date
    • Thread