All pastes #203733 Raw Edit

url_rewrite

public text v1 · immutable
#203733 ·published 2006-10-15 11:06 UTC
rendered paste body
I'm trying to use url_rewrite to display /misc/ folder when /content/ folder is requested.

So i added the following lines to the virtual server:

RewriteEngine On
RewriteLogLevel 1

RewriteCond %{REQUEST_URI} ^/Content/(.*) [NC]
RewriteRule ^(.*)$ /misc/$1 [L]

But seems that the 'content' is not replaced by 'misc'. It just paste it to it.

[Fri Oct 13 03:55:18 2006] [error] [client 192.168.2.1] File does not exist: /var/httpd/epoch.co.il/www/html/misc/Content