Results 1 to 4 of 4

Thread: htacdcess logging ?

  1. #1

    Join Date
    Sep 2002
    Location
    Auckland
    Posts
    1,356
    Rep Power
    17

    htacdcess logging ?

    Code:
    RewriteLog /home/users/web/DIRECTORY/htdocs/rewrite.log
    RewriteLogLevel 2

    Hello I've got a problem, & thought to activate htaccess logging - But this causes more errors.

    1) is there any way to activate / cause / create htaccess log files in a directory i CAN access (by a php script). - NOT in OPS.

    ive added the above lines to my access (for a particular / specific directory), & now get SERVER 500 errors etc.. i'll remove these lines now.

    2) ORIGINAL PROBLEM :-


    in an UPPER directory, I have :-ErrorDocument 404

    i'm tying to programme a php script in a lower directory, & it keeps triggering the 404 error. I've checked. tripple checked & then double-checked again. My script URL *IS* valid and should not be triggering the 404 error (redirects to my home-page..)

    I've commented out the error document line & force-refreshed my browser, & it STILL activates / redirects according to the upper htaccess.


    Basically, I want to understand / know / trace why the powweb server thinks its a 404.

    EDIT 2 :- i would add more extensive error logging into my PHP script, but this/these errors are being caused before my php script is started, so any php logging won't be activated.
    Last edited by PeterPan; 2-21-14 at 09:24 PM. Reason: Spelling arrars

  2. #2

    Join Date
    Sep 2002
    Location
    Auckland
    Posts
    1,356
    Rep Power
    17
    my problem seems to be fixed. - though i do NOT know why. the new URL/page now works without redirecting.

    (caching ?)

    I'vce also (after it worked), added a cache part to my htaccess - so hopefully stop further probs.

    https://www.forums.powweb.com/showthread.php?t=85763


    Though - is it still possible to create / set htaccess log files ?

  3. #3

    Join Date
    Sep 2002
    Location
    Auckland
    Posts
    1,356
    Rep Power
    17
    Hmm - i created a new subdirectory, i have index.php in it, & my 404 redirect seems to be activating again.

    I hope that there is a way to de-bug htaccess redirects.

  4. #4
    Rick
    Join Date
    May 2002
    Location
    Minneapolis, MN
    Posts
    1,753
    Rep Power
    19
    There is. The first step is to test a suspected bad URL in a server response header checker. That will tell you a lot about what's happening.
    Rick Trethewey

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •