This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Directing to the home page  RSS feed

 
Zoram Paul
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could configure an error page for 404 errors which redirects to the home page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!