Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > validate .htaccess?

Reply
Thread Tools

validate .htaccess?

 
 
draphael
Guest
Posts: n/a
 
      12-09-2005
Is there such a thing as an .htaccess validator?
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)

best,
D.


 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-09-2005
draphael wrote:
> Is there such a thing as an .htaccess validator?
> 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 leading '.' in the filename means a hidden file on *nix systems sou
it will not be visible withing many ftp/website file managers. With
WS_FTP your must expressly type the filename '.htaccess' to be able to
download and edit the file.

see for syntax
http://www.google.com/search?hl=en&l...ax&btnG=Search

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
draphael
Guest
Posts: n/a
 
      12-09-2005
"Jonathan N. Little" <> wrote in message
news:4399f0b6$0$8175$.. .
> draphael wrote:
>> Is there such a thing as an .htaccess validator?
>> 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 leading '.' in the filename means a hidden file on *nix systems sou it
> will not be visible withing many ftp/website file managers. With WS_FTP
> your must expressly type the filename '.htaccess' to be able to download
> and edit the file.
>
> see for syntax
> http://www.google.com/search?hl=en&l...ax&btnG=Search
>
> --
> Take care,
>
> Jonathan


Hi Jonathan,

Thanks! But I guess I wasn't very clear. I do know where the .htaccess file
is! (And I have my FTP application configured to always show it on the
server, because I edit it often.)

It's the error in the .htaccess file that I can't find...that's why I was
wondering if there's such a thing as an .htacess validator.

best,
D.


 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-09-2005
draphael wrote:

> Hi Jonathan,
>
> Thanks! But I guess I wasn't very clear.


I am afraid your are not...

I do know where the .htaccess file
> is! (And I have my FTP application configured to always show it on the
> server, because I edit it often.)
>
> It's the error in the .htaccess file that I can't find...that's why I was
> wondering if there's such a thing as an .htacess validator.


....without seeing what /is in/ your .httacces file we would have no
clue! No validator, just instuctions. Google useful, the Apache manual
has a whole section on the .htaccess file.



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
kchayka
Guest
Posts: n/a
 
      12-10-2005
Jonathan N. Little wrote:
>
> With
> WS_FTP your must expressly type the filename '.htaccess' to be able to
> download and edit the file.


No you don't. Just enter "-al" (without the quotes) as directory list
options. It will then show all hidden files.

In the version of WS_FTP that I have, there is an input box in the far
right column, under the MkDir button, where you can enter the option.
You can make it the default display option as well.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-10-2005
kchayka wrote:

> Jonathan N. Little wrote:
>
>>With
>>WS_FTP your must expressly type the filename '.htaccess' to be able to
>>download and edit the file.

>
>
> No you don't. Just enter "-al" (without the quotes) as directory list
> options. It will then show all hidden files.


Version 8.03 WS_FTP Pro
>
> In the version of WS_FTP that I have, there is an input box in the far
> right column, under the MkDir button, where you can enter the option.
> You can make it the default display option as well.
>


if I put '-al' in said file mask box the hidden files still are not
visible...The help file states on the topic of hidden files

'You can transfer a hidden file if you know its name. To transfer a
hidden file, make sure nothing is selected, and then click the Upload or
Download arrow. You will be prompted for the file name.'

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Michael Winter
Guest
Posts: n/a
 
      12-10-2005
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.
 
Reply With Quote
 
Don
Guest
Posts: n/a
 
      12-11-2005
"draphael" <> wrote in
news:bXlmf.72$Ea6.56@trnddc08:

> Is there such a thing as an .htaccess validator?
> 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)
>
> best,
> D.
>
>


Not that I'm aware of!
My own htacess rather large at 1600 lines.
The file is forever getting additions, subtractions and lines combined.

Most errors are simple syntax errors. (missing OR, (, ), [, ] or extras
of the same.

Upon becoming aware that a line is not functioning as intended?
It generally takes from 1-2 for me to locate the error (fortuantely I've
learned to be more careful when making changes).

Some simple solutions are to create a duplicate TEMP copy and then use
MS-Words Find functions. Other times I've taken to BOLD fonting specific
characters to ease the repetition of reading the same crap over and
again.

With regular expressions and their complexity, there are simply too many
options (and different ways too end up with the same outcome) for a
creation tool or validator to be functional.

Print the pages and go through each line individually.
Make sure to use a room with very good lighting.
 
Reply With Quote
 
Big Bill
Guest
Posts: n/a
 
      12-11-2005
On Fri, 09 Dec 2005 16:04:18 -0500, "Jonathan N. Little"
<> wrote:

>draphael wrote:
>> Is there such a thing as an .htaccess validator?
>> 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 leading '.' in the filename means a hidden file on *nix systems sou
>it will not be visible withing many ftp/website file managers. With
>WS_FTP your must expressly type the filename '.htaccess' to be able to
>download and edit the file.


Actually you just put
-al
in the little window on the right and that makes it visible. You
might have to click refresh (in WS_FTP) as well.

BB
--
www.kruse.co.uk/
The buffalo have gone
 
Reply With Quote
 
Big Bill
Guest
Posts: n/a
 
      12-11-2005
On Fri, 09 Dec 2005 22:10:54 -0500, "Jonathan N. Little"
<> wrote:

>kchayka wrote:
>
>> Jonathan N. Little wrote:
>>
>>>With
>>>WS_FTP your must expressly type the filename '.htaccess' to be able to
>>>download and edit the file.

>>
>>
>> No you don't. Just enter "-al" (without the quotes) as directory list
>> options. It will then show all hidden files.

>
>Version 8.03 WS_FTP Pro
>>
>> In the version of WS_FTP that I have, there is an input box in the far
>> right column, under the MkDir button, where you can enter the option.
>> You can make it the default display option as well.
>>

>
>if I put '-al' in said file mask box the hidden files still are not
>visible


Hit refresh.

BB
--
www.kruse.co.uk/
The buffalo have gone
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie, unable to validate with genuine windows XP Pro? =?Utf-8?B?SWdvciBRdWFzaW1vZG8=?= Microsoft Certification 0 11-05-2005 08:17 PM
Validate SessionID Shankar Reddy ASP .Net 3 09-25-2004 05:59 AM
can i validate the presence of .Net framework in the OS a_srivathsan ASP .Net 2 09-08-2004 03:56 AM
Re: How could I validate a MCSE certificate? Andy Foster MCSE 0 07-02-2003 03:03 PM
Re: How could I validate a MCSE certificate? Dandy WEYN MCSE 0 07-02-2003 11:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57