0

I have the following button that redirects to the given page on button click. I want that instead of http://localhost:8181/RestServiceProject/index2.html this url showing on the status bar, it shows http://localhost:8181/RestServiceProject/GetDetails

How to do this in html?

<form action="http://localhost:8181/RestServiceProject/index2.html">
<button type="submit">Get Order Details</button>
</form>
arhak
  • 2,488
  • 1
  • 24
  • 38
Natasha
  • 271
  • 2
  • 5
  • 12

2 Answers2

0

The easies way of doing that would be renaming index2.html to GetDetails.html and changing the action url to GetDetails without any extnsion. Next and last thing to do is removing extensions from the url using .htaccess see more info here. Remember that you have to use server which will read your .htaccess.

Community
  • 1
  • 1
El Danielo
  • 780
  • 1
  • 8
  • 18
-1

That would be done with the server.

For example, if you're using an Apache server, using URL Rewrite: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

nicovank
  • 3,157
  • 1
  • 21
  • 42