
Marcus Dennis wrote:
The directives you're looking for: LoadModule rewrite_module modules/mod_rewrite.so RewriteEngine On RewriteRule ^/$ /otrs/index.pl [R]
The first line is actually probably already in the httpd.conf, commented out with a # sign. It loads the piece of apache that deals with this kind of redirection.
mod_rewrite doesn't deal with redirection, it deals with *rewriting* the URL (so you see http://www.agenthelpdesk.com/ in your address bar, but actually the webserver is showing you http:// www.agenthelpdesk.com/otrs/index.pl).
The second line turns it on. The third line tells it what to do. In case you're not familiar with regular expressions, ^ means the beginning of a string, and $ means the end of a string, so ^/$ means look for a / all by itself (nothing else). This is replaced by /otrs/index.pl. The [R] flag says to actually reload the page with the new path instead of silently redirecting (so that other things on the page know to look for stuff in /otrs instead of /).
While this would work, I'd say a simple one-line Redirect is a lot easier (no regular expression needed). :o) Nils Breunese.