Reply to Re: validate .htaccess?

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация