Apache Server configuration support - rewrite [R] directs to full path

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2007 > rewrite [R] directs to full path





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author rewrite [R] directs to full path
Paul Furman

2007-07-22, 1:20 am

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

Changes the following address:
http://localhost/1/old.html
http://localhost/c:/documents%20and...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
Paul Furman

2007-07-22, 1:20 am

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...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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com