|
Posted by Michael Winter on 12/10/05 17:18
On 09/12/2005 20:38, draphael wrote:
> Is there such a thing as an .htaccess validator?
Not to my knowledge, but the server will check the syntax as it parses
it. Unfortunately, that does mean you'll have to wait until a request to
that path, or deeper, causes the server to inspect the file.
> My error log shows a problem in my .htaccess file, and I haven't been
> successful in finding it.
>
> (the error reads: [Mon Dec 5 20:12:47 2005] [alert] [client 65.65.96.190]
> /home/mysite/public_html/.htaccess: Redirect to non-URL)
The URL argument to a Redirect or RedirectMatch directive isn't a valid,
absolute URL. For instance,
Redirect /foo /bar
will produce that error because /bar is only a path, which isn't sufficient.
Redirect /foo http://www.example.com/bar
on the other hand, will correctly map requests for
/foo/...
to
http://www.example.com/bar/...
Mike
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Navigation:
[Reply to this message]
|