rewrite [R] directs to full path

rewrite [R] directs to full path

am 22.07.2007 02:51:51 von Paul Furman

RewriteEngine on
RewriteRule ^old\.html$ new.html [R]

Changes the following address:
http://localhost/1/old.html
http://localhost/c:/documents%20and%20settings/paul/desktop/ _paul/web/public_html/1/new.html

and then I get a *forbidden* error

why doesn't it change it to:
http://localhost/1/new.html

?


I mean there isn't any such place as http://localhost/c:/...
Where is that coming from?

--
Paul Furman Photography
http://www.edgehill.net/1
Bay Natives Nursery
http://www.baynatives.com

Re: rewrite [R] directs to full path

am 22.07.2007 04:05:43 von Paul Furman

Paul Furman wrote:
> RewriteEngine on
> RewriteRule ^old\.html$ new.html [R]
>
> Changes the following address:
> http://localhost/1/old.html
> http://localhost/c:/documents%20and%20settings/paul/desktop/ _paul/web/public_html/1/new.html
>
>
> and then I get a *forbidden* error
>
> why doesn't it change it to:
> http://localhost/1/new.html
>
> ?
>
>
> I mean there isn't any such place as http://localhost/c:/...
> Where is that coming from?

Solved, and the answer is:

RewriteBase

--
Paul Furman Photography
http://www.edgehill.net/1
Bay Natives Nursery
http://www.baynatives.com