• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Directing to the home page

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,

If an user enters in the url address as http://zoramsite.com/UsernameOrAnything

what I want is that the user will be directed to the home page of the site as
http://zoramsite.com

Where should I make changes in the application so as to succeed?

I think there is something to do with the config file of the HTTP server, but not sure how to do it.

Please Please Please advice,

Thanks
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That depends on what kind of server software you have running (Apache, servlet container, ...) and on whether the directory "UsernameOrAnything" exists or not.

Either way, it has nothing to do with web services, which is what this forum is about. Let us know what software you're working with, and we'll move it to a more appropriate forum.
 
Zoram Paul
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Reply to:

That depends on what kind of server software you have running (Apache, servlet container, ...) and on whether the directory "UsernameOrAnything" exists or not.

Either way, it has nothing to do with web services, which is what this forum is about. Let us know what software you're working with, and we'll move it to a more appropriate forum.




Actually "UsernameOrAnything" is not a directory or other thing but simply a text that the user may enter in the url, which will redirect to the home page of the url. I am using Tomcat 5.5

eg: actual url is: http://www.zorampaul.com
but user enters: http://www.zorampaul.com/whateverHeWants
And this link directs to the http://www.zorampaul.com/home.jsp

Can you advice on this?


Thanks
 
Ulf Dittmer
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could configure an error page for 404 errors which redirects to the home page.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic