1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How can I test my .htaccess file?

Discussion in 'Apache' started by FFMG, Oct 29, 2005.

  1. #1
    My provider seems to allow some apache commands and not others.
    It would be great if I could send a command in PHP to apache and, by the reply i get, check if that would work or not, (or see if it works as expected).

    For example with, "ErrorDocument 404 ...", it does not always seem to work, I am not sure if it is because of my provider or because I am doing something wrong.
    In the case of the ErrorDocument I get a "page not found" error, but I don’t know if it is because my redirected page was not found, if there was a mistake in my .htaccess or if apache did not even read my “ErrorDocument” entry.

    So, how can I test what apache will do with my .htaccess?

    FFMG
     
    FFMG, Oct 29, 2005 IP
  2. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    how are you writing your ErrorDocument
     
    MiamiHost, Oct 30, 2005 IP