In my java web application, I am planning to use the ".htaccess" for implementing cache control. Can I add it to my WAR or EAR?\nIf yes, in which location?
122810
I would think so, but I havent tried it. Try putting it in the same directory where you put your html files.
394918
Mambo is outdated - the release of Joomla took it's place.  I don't have experience using DotNetNuke or Post-Nuke, but I use Joomla on a couple of sites and I'm very happy with it.  There are a lot of add on modules and components, it's very easy to use, their support forums are active, and I've never had much trouble just doing a web search for specific things I'm looking for and coming up with the answers for them.  I also like that it was included with my hosting package, so installation was a breeze.  I'd definitely recommend it.
177385
JUST ADD A http:// in front of the www.............
293825
Unfortunately you cannot. And yahoo is not the only one that has your site in cache. There is google for one. And then there are websites simply dedicated to images of the internet. As far as reindexing goes, the search engines use "robots" (tiny programs) that go out all over the internet and look at what has changed. Sooner or later the Yahoo robot will pick up your website changes.
649689
Add the website to the hosts file and make it point to 127.0.0.1 (or localhost).\n\nThis has the advantage that any program will not be able to access the site, rather than just stopping a single program from accessing it.\n\nThe site I provided gives clear instructions on setting this up.
467629
How are you accessing phpmyadmin if you don't already have a PHP-enabled webserver?\n\nApache is simply that: a webserver (or an "HTTP server").  It accepts the requests from HTTP clients (e.g. web browsers) and processes them.  If the request asks for a resource that happens to be a PHP file, and if your webserver is configured to execute that file, then the PHP engine is invoked to process the PHP code and return the results (typically an HTML page).\n\nDrupal is simply a PHP application.  By that, I mean it is a series of PHP files that, when the components are configured correctly, executes logic to do all the Drupal functionality (display content, allow users to log in, administration and content editing, etc...)\n\nSo the short answer is that you need a webserver of some type.  The odds are, if you already have PHP running correctly, that you already have a webserver such as the Apache HTTPd server, or Microsoft IIS, or iPlanet or a number of others.\n\nBTW: you'd have gotten a more accurate response if you told us what operating system (and version) is on your "server" [or any relevant details, such as hosting system or whatnot].\n\nHope this helps.
509991
Dunno\n\nTry looking here: http://66.102.9.104/search?q=cache:S0FozEIhtw0J:justfuckinggoogleit.com/\n\nHTH\n\n:-)\n\n.
69917
1. Install apache server.\n2. Configure it.\n3. Write "index.html" or "index.php", etc. as your main page and place it into apache web root directory.
586766
It depends on how the server administrators have configured the service I'm afraid :)\n\nYou could use the following tip to make life a bit easier:\n\nWith the Internet Explorer and Mozilla Firefox browsers, pressing the Control and Enter keys simultaneously will prefix 'www' and suffix '.com' to whatever has been typed into the address box.\n\nHope this helps.
153242
HttpRedirectFilter\n\nHttpRedirectFilter is a servlet which implements javax.servlet.Filter interface. It inspects the URL of a HTTP request and either forwards the request to a different location, or redirects the user agent to a new URL. It can be used as a general redirector on a servlet container such as Apache Tomcat.\nIntroduction\n\nWhat do I mean by 'HTTP redirect'? See, every resource on the web has an unique identifier called URL. This identifier represents the location of the resource. When resource is moved to a new location, the URL changes. However, the old URL should remain valid, at least for a time. Other web-sites, search engine databases, even manuals for certain products contain the old URL. We want a smooth change, so we continue to serve the resource through the old URL, along with the new, in order to prevent all the links from breaking at once.\n\nUser agents (browsers) are informed about the change in the URL through HTTP status codes. When an user agent requests a resource which has been moved, the server can do one of the following:\n\nForward: The server reads the resource from the new location and delivers it to the user agent. The user agent will never know this has happened. The change in the URL is internal to the server and the new URL isn't known to the public.\n\nRedirect temporarily: The server returns the 302 status code to the user agent indicating that the resource is temporarily available at a new URL, which is returned in the response header Location. It is up to the user agent to issue a new HTTP request using the new URL and that is what most browsers do. The saved links, such as bookmarks, should however keep pointing to the old URL because the URL change is considered temporary.\n\nRedirect permanently: The server returns a 301 status code to the user agent indicating that the resource has permanently moved to a new URL, which is returned in the response header Location. It is up to the user agent to issue a new HTTP request using the new URL. Most browsers do exactly this. The saved links, such as bookmarks, should be modified to point to the new URL, as the old one is expected to stop working in the future.\n\nPristine Tomcat, as distributed by Apache, does not offer any means to do the above. If you want Tomcat to redirect, you must program this functionality in Java. HttpRedirectFilter is the result of such an attempt.\nInstalling The Filter\n\nThe filter is distributed in a single JAR which should be placed in the web application's WEB-INF/lib directory. The JAR archive can be found here. It contains the source code, binaries and a sample configuration file.\n\nThe web application descriptor file must be modified, so that the container starts employing the filter. You can tell the container that the new filter exists by declaring it in your WEB-INF/web.xml file. The filter declaration must pass at least one parameter to the filter, namely the path to its configuration file, relative to the root of the web application. Here is an example:\n\n<filter>\n <filter-name>HttpRedirectFilter</filter-name>\n <filter-class>com.zlatkovic.HttpRedirectFilter</filter-class>\n <init-param>\n  <param-name>configFile</param-name>\n  <param-value>/WEB-INF/httpredirectfilter.xml</param-value>\n </init-param>\n <init-param>\n  <param-name>reloadConfig</param-name>\n  <param-value>false</param-value>\n </init-param>\n <init-param>\n  <param-name>logRedirects</param-name>\n  <param-value>false</param-value>\n </init-param>\n</filter>\n\nTo tell the container to let this filter process every request, the following filter mapping must be added to WEB-INF/web.xml as well:\n\n<filter-mapping>\n <filter-name>HttpRedirectFilter</filter-name>\n <url-pattern>/*</url-pattern>\n</filter-mapping>\n\nThe filter should n
204508
Take out the lines with the # to see the actual code.\n\n#This is the contents of the .htaccess file\n#The .htaccess file cannot be browsed on the internet.\n#This line is the full server path to the .htpasswd file\nAuthUserFile /www/thing/.htpasswd\nAuthGroupFile None\n#This is the text that will appear on the logon window.\nAuthName "Security access"\n#This option is always Basic\nAuthType Basic\n\n#Now the .htpasswd file\n#This file can be browsed on the internet\n#These are the user id's followed by a colon\n#and the encrypted password.\nuser1:87339BdvlmTCc\nuser2:89A4NJrNk03qQ\n#Each line must end with a carriage return.
79810
This is a 403: Forbidden error.\n\nThe reason you are getting it is because you have not uploaded a properly named default page.\n\nGenerally speaking, your home page -- the page you want to have people go to when they visit www.marshfield speedway.com -- should be named index.htm or index.html if it's just HTML. \n\nThat will prevent this error from occuring.\n\nNote, however, that if you change the name of a Web page, all the links to it from your other pages will be wrong.\n\nIf you absolutely, positively do not want to rename your homepage, and your hosting plan supports PHP (most paid plans do), do this:\n\nCopy this line of text:\n\n<? header("Location: FILE_NAME_OF_YOUR_HOME_PAGE"); ?>\n\nPaste that into a TEXT document. Not a Word document, not an HTML document, a text document. You can easily make text documents with Notepad:\n\nStart Menu --> All Programs --> Accessories --> Notepad.\n\nReplace FILE_NAME_OF_YOUR_HOME_PAGE with the FILE name -- such as home.htm -- of your home page. Do not change anything else; keep all quotes, parenthesis, etc. intact.\n\nSave that text file with the name index.php -- not index.php.txt, not index.php.htm, not anything else, just index.php -- and save it in the same folder as your Web site's home page.\n\nUpload the index.php page to your home page.\n\nNow, when people visit your site, they will automatically be directed to your home page; nothing else to change.\n\n\n\nApache 1.3.27 is the Web server your host is running.
345260
Your cPanel you are using likely creates a .htaccess file in your /admin directory. It is hard to check this as many servers hide this file and windows will not let you work with files that begin with a period.\n\n.htaccess files are recursive. In otherwords they control everything down stream. Until they meet another one to modify them.\n\nWhat you could try (if the .htaccess file is being used on the /admin directory). Is to use another .htaccess file in your /admin/uploads/ directory with the following:\nRequire valid-user\nAllow from all\nSatisfy Any\n\nThat will make any directories in that /admin/uploads/ to be guest access.\n\nNow to upload an .htaccess file:\nupload it as htaccess.txt\ndo a rename to .htaccess\nif you want to delete it later do a quote command dele .htaccess
210266
Ok, I just figured it out but I am not sure what to change it to but I can guess haha. But here is the location.\nGo to RUN\nType regedit\nClick HKEY_CURRENT_USER\nClick SOFTWARE\nClick MICROSOFT\nClick INTERNET EXPLORER\nClick Search\nRight click CustomizeSearch and Click MODIFY and type this:\nhttp://ie.search.yahoo.com/{sub_rfc1766}/srchasst/srchcust.htm\nand click OK.\nRight Click SearchAssistant and Click MODIFY and type this:\nhttp://ie.search.yahoo.com/{sub_rfc1766}/srchasst/srchasst.htm\nand click OK.\n\nIf it doesn't just change it back. Also I have not tried it, this is just a guess don't get mad if it doesn't work. Also send me an email telling me what happened and if it worked or not please, just curious.
293030
<? header("Location: http://www.someurl.com"); ?>\n\nYour header() calls must occur BEFORE you send any content to the browser. For example, this works:\n\n<?\nif($a == 1) {\nheader("Location: http://www.someurl.com");\n}\necho "Hello world!";\n?>\n\nThis does NOT work and will throw an error indicating that headers have already been sent:\n\n<?\necho "Hello world!";\nif($a == 1) {\nheader("Location: http://www.someurl.com");\n}\n?>\n\nAny time you see the error message that headers have already been sent, you need to move your header() statement higher up on your page.
577558
I am not sure how to configure Sun's Application Server, but why not try Tomcat? it's downloadable from http://tomcat.apache.org/, it's free, and it's very easy to install and use
231146
There is a web hosting server, which has got different virual folders setup as websites...more like a schema...those folders are locked with a referenced IP address. So when you type in the website address...DNS reosloves the name to the IP address...and gives you the website to  your browser!\n\nHelps??