You are better off writing something to change all of the code
(search/replace) and make it all relative (site independent). Either that,
or just put it where it likes to be. 

If you have it setup as a vhost or the site is on its own, you can just do
a redirect into the /ao/ directory, and it may be ok.

Rewrites, in my professional opinion, are not the 'correct' way to do
this. Although others may not agree, rewrites are bandaids in a lot of
scenarios. Good ones, but nonetheless a bandaid. 

P

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Tuesday, June 07, 2005 10:15 AM
To: users@httpd.apache.org
Subject: AW: [EMAIL PROTECTED] redirect document root

e.g.:

the login page is at login/main.jsp. It loads a frameset. Generally, some
of
the links are absolute, like /ao_unten.htm, others are relative like
../login/login_presubmit.jsp.

Accessing /login/main.jsp results in 

GET /login/main.jsp HTTP/1.1" 404 332

Heiner

-----Ursprüngliche Nachricht-----
Von: Joshua Slive [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 7. Juni 2005 15:17
An: users@httpd.apache.org
Betreff: Re: [EMAIL PROTECTED] redirect document root


On 6/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>  
> 
> Hi there, 
> 
> I have an application running at the web context /ao/, however, it is
> originally designed to run on /. I've tried to use the rewriting-engine
with
> the statement 
> 
> RewriteRule ^/$ /ao/ [R] 
> 
> however, it does not work. Are there any other tricks? 

This is not a good problem description.  What exactly is the problem
you are trying to solve?  Is it absolute links in your application? 
What exactly do the links look like?  What do you get in the error and
access log when you try to run it?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to