.do extension in web pages?
ExecutionExecution Problem Overview
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.
Execution Solutions
Solution 1 - Execution
.do comes from the Struts framework. See this question: https://stackoverflow.com/questions/3597582/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).
Solution 2 - Execution
".do" is the "standard" extension mapped to for Struts Java platform. See http://struts.apache.org/ .
Solution 3 - Execution
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.
Solution 4 - Execution
Using apache's rewrite_module can change your script extensions. Give this thread a good read.