posted 17 years ago
You can do it with .htaccess (assuming your apache server is set up to allow this: AllowOverride must be set to the appropriate value).
Suppose your site is www.example.com/myapp and your welcome file is called welcome.html, in the same directory.
Edit the .htaccess in your myapp directory (create the file if it doesn't exist) and add the following:
Now when someone tries to go to http://www.example.com/myapp/lunch/fruit/apple/core.do
they will get the welcome.html file, assuming lunch/fruit/apple/core.do does not exist--when your application is undeployed.
You could put the welcome file in another directory, as long as it can be seen from the web. Note also that it MUST be accessible from the same URL (www.example.com), otherwise you'll get wacky results.
[ August 09, 2006: Message edited by: Rusty Smythe ]
[ August 09, 2006: Message edited by: Rusty Smythe ]