Looks like I had some browser caching. This seemed to do it:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www$ [NC]
RewriteRule ^/(.*)$ http://www.mycompany.com/$1 [R=301]
Thank you lgarner.
I cannot seem to catch http://www/ but only http://www/something. That is, http://www/ isn't redirecting to http://www.mycompany.com/. However, http://www/x/y/z will redirect to http://www.mycompany.com/x/y/z.
I have tried both of these variations
RewriteEngine on...
Background: we have 2 departments: Systems and Web. The Systems Dept controls software on servers and clients, and the Web Dept controls the Apache configuration as well as web development.
The Systems Dept has it set up so http://www/ displays our company's homepage. We, the Web Dept...
This XML snippet (which is not well-formed) has no meaning on its own. It is the definition (DTD or schema) and/or the DED that defines the XML -and- the application (XSLT, XSL-FO, Java, etc.) that acts about it.
Oh, and don't forgot to check the perms and owner on your WAR. For example, if Tomcat is running as user "tomcat", it wouldn't deploy your your WAR if it were root:other.
Sadly, I don't know why this isn't working. However, I do have a couple of servlets which I have renamed the WAR files, and they have deployed. For example, the eXist (XML DB) package is distributed as exist.war, but I have renamed it to xml.war. There are some configurations I have changed...
Look at your Tomcat startup and shutdown scripts. These can be used to setup your version of Java independent of your system or JAVA_HOME. For example, my system uses 1.5 but my Tomcat is on 1.6.
Be aware of your compiled stuff. For example, compiling in 1.6 and trying to run under 1.5...
Thank you tsuji for taking the time to respond. My Xalan wrapper servlet can accept params similar to command-line calls to Xalan. Therefore, I am passing the info in via a parameter. I may be forced to write my own class to get the info like you suggest, unless I (or Tek Tip folks) can come...
Background: I am running a servlet under Tomcat. The servlet is a "wrapper" for Xalan-J that transforms a given XML/XSL combo.
I have been successful in getting super basic Java calls working in my XSLs (such as string.toUpperCase or InetAddress.getLocalName).
My current need is for the XSL...
If you are familiar with the RSS XML format (i.e., basically a collection of <item> nodes), then you can easily have a collection greater than 15,000. We have some with over 60,000 <item>s.
The current version of the eXist database can have 2^16 collections. So, that is like having 2^16...
I'd be very afraid having anything on the web server with wide open perms (777). Send me the URL to your web site, and I'll show you why *** LOL - just kidding!
On our servers running as nobody, we set our files to 464 (r--rw-r--) and nobody:GROUP -- where GROUP are the folks who maintain...
We, the Web Dept, use relative paths where ever we can. (I can't go into why but for this discussion just consider it a must.) Therefore, the relative link basically inherits what the internal user has set for their homepage. So, this internal user is routinely corresponding to other external...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.