Reputation: 36651
I want to know what is .do extension in web pages. Is it a standard extension, or, if it's not, can we change the extension (like client-login.php
to client-login.do
and still run as PHP)?
Thanks.
Upvotes: 69
Views: 131399
Reputation: 759
".do" is the "standard" extension mapped to for Struts Java platform. See http://struts.apache.org/ .
Upvotes: 47
Reputation: 34587
.do comes from the Struts framework. See this question: Why do Java webapps use .do extension? Where did it come from? Also you can change what your urls look like using mod_rewrite (on Apache).
Upvotes: 173
Reputation: 283733
It is whatever it is configured to be on that particular web server. A web server could be configured to run .pl files with the php module and .aspx files with perl, although that would be silly. There are no scripts involved with most web servers, instead you'd have to look in your apache configuration files (or equivalent, if using different server software). If you have permission to edit the server config file, then you could make files ending in .do run as php, if that's what you're after.
Upvotes: 36