have such an error.
When adding a Redirect 301 rule to a .htaccess file, for example:
Redirect 301 "/page1.html" "/dir1/"
My site crashes with an error of 500 servers and this error appears in the apache error log:
[Wed Mar 16 11:08:52 2011] [alert] [client 127.0.0.1] /home/htdocs/site.com/www/.htaccess: Redirect to non-URL
The mode rewrite was installed, they also tried to provide URLs without quotes.
On the production server, this .htaccess works fine, but for local reasons, problems
Any ideas please)
This rule works.
Redirect 301 "/page1.html" "http://www.site.com/dir1/"
but I need a way to provide relative paths instead of full URLs (the production server works this way)
.htaccess apache2
Dmitry Evseev
source share