Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4602786
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:02:35+00:00 2026-05-22T00:02:35+00:00

If I run a webapp under the uri /myapp then as soon as the

  • 0

If I run a webapp under the uri /myapp then as soon as the app is accessed via http://example.com/myapp, the URL changes to http://example.com/myapp/. Is there any way to prevent this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:02:36+00:00Added an answer on May 22, 2026 at 12:02 am

    When you have such a behaviour your web (or application) server returns a

    301 Moved Permanently
    

    when the URL without slash is requested.

    You can see a similar example when getting http://www.google.es/services

    HTTP/1.1 301 Moved Permanently
    Location: http://www.google.es/services/
    Content-Type: text/html; charset=UTF-8
    X-Content-Type-Options: nosniff
    Date: Wed, 11 May 2011 15:24:06 GMT
    Expires: Fri, 10 Jun 2011 15:24:06 GMT
    Cache-Control: public, max-age=2592000
    Server: sffe
    Content-Length: 227
    X-XSS-Protection: 1; mode=block
    

    After this first HTTP get to http://www.google.es/services
    (without slash), the browser makes a second HTTP get to http://www.google.es/services/ (with slash). You can trace the HTTP requests with Network tab in Firebug, for example.

    You can check your web/application server configuration, and maybe you can change this behaviour.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to run a rails app under a subdirectory on my Linux
I have just recently run into an issue running an asp.net web app under
Is it possible in to detect in web app run under mod_perl if it
I have an ASP.NET (framework 2.0) web app running under IIS7. When I run
I've been using tomcat7-maven-plugin. I want to run my webapp which connects to the
I am trying to run a Java webapp build instance but it stops in
in a webapp i want to run an async thread for a long process
I'm trying to run tests for my webapp. I've used Spring and Hibernate for
When I launch a webapp with lein run or lein ring server , I
I have a Java EE webapp that works perfectly when I run it on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.