rewrite [R] directs to full path

This is a discussion on rewrite [R] directs to full path within the Apache Web Server forums, part of the Web Server and Related Forums category; RewriteEngine on RewriteRule ^old\.html$ new.html [R] Changes the following address: http://localhost/1/old.html http://localhost/c:/...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-22-2007
Paul Furman
 
Posts: n/a
Default rewrite [R] directs to full path

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

Changes the following address:
http://localhost/1/old.html
http://localhost/c:/documents%20and%...tml/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
  #2 (permalink)  
Old 07-22-2007
Paul Furman
 
Posts: n/a
Default Re: rewrite [R] directs to full path

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%...tml/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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:22 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0