How about this one: 

mv ao/* .

I'd figure its absolute links causing the problem after reading this a few
times. If you run a rewrite as you state, it will redirect the root only.
Meaning if you go to the site's root, it will push you to /ao/, but any
links you click (if it is not a relative site link), will be looked for in
root as it does not match the rewrite rule.

^/$ - means ONLY / 

^/the/url/i/click/$ - is a completely different regex.

Why not just move it to root as I say up top, if in fact this is the
problem. I think anything more than that would require conditions. Joshua
would be able to add more than I on that.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 07, 2005 9:17 AM
To: users@httpd.apache.org
Subject: 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]

Reply via email to