.htaccess and other initial problems

Discussion in 'Co-op Advertising Network' started by joewood, Mar 8, 2005.

  1. #1
    I'm running into problems with the initial validation of a site. My first site is already OK on the coop network.

    When viewing the source for my site tekwholesale.com , it shows the "<?php..." code instead of an ad.

    Also, when I add in the .htaccess file as directed, anyone visiting the main URL gets a security error that the file type is unknown (I have removed the .htaccess file due to this - my server is PHP)


    Could anyone tell me what is wrong?

    If it is not parsing (I'm not certain what that is) could you let me know how to take care of it?
     
    joewood, Mar 8, 2005 IP
  2. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #2
    Hi joewood

    Whats in your htaccess file?
     
    Patient, Mar 8, 2005 IP
  3. joewood

    joewood Peon

    Messages:
    100
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just what the instructions say ".htaccess" with no prefix, which contains:
    "AddType application/x-httpd-php .php .htm .html"
     
    joewood, Mar 8, 2005 IP
  4. joewood

    joewood Peon

    Messages:
    100
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I've tried everything suggested everywhere, and the problem seems to be with my .htaccess file.

    Every time I put up the .htaccess (using several methods) the site crashes and gives a security issue failure.

    I've tried parsing through the Appache server, and that does not work.

    The site - tekwholesale.com - does not show ads, even though all proper code is where it is supposed to go. Instead, the view-code reveals the script where the ad is supposed to go.

    The Apache handler on my host has this:

    User Defined Handlers
    System Defined Handlers

    .cgi .pl cgi-script
    .htm server-parsed
    .html server-parsed
    .php .php4 .php3 application/x-httpd-php
    .shtml server-parsed


    Any help?
     
    joewood, Mar 8, 2005 IP
  5. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #5
    Don't know if this is any help, but a few folks had alternative .htaccess commands in this thread - might be worth a try :)
     
    Lever, Mar 8, 2005 IP
  6. joewood

    joewood Peon

    Messages:
    100
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks - but again, it had me add a .htaccess file, which crashed the site.

    I have tried adding the .htaccess though the c-panel, FTP, as well as Frontpage - all fail.

    Any suggestions?
     
    joewood, Mar 8, 2005 IP
  7. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #7
    Hmm, does this host/ISP allow .htaccess? Is it the same host/ISP as the site/s you've successfully added co-op to?

    If that's all OK, have you tried modifying your .htaccess file in notepad or similar and then using a standard FTP client to upload the file?
     
    Lever, Mar 8, 2005 IP
  8. joewood

    joewood Peon

    Messages:
    100
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The host is not the same as before. But I've tried 3 different sites that are on 3 different servers - all failed with the same problem. I have a post waiting for server support to see if they allow changes to the .htaccess, and will find out soon. But, I would think one of the 3 would definitely allow it.

    I've tried modifying the .htaccess directly on the c-panel, through FTP, using notepad, through Frontpage and anything else suggested in the forums.

    Still getting the 500 error thought when there is a .htaccess file with the commands in the instructions.

    Any ideas?
     
    joewood, Mar 8, 2005 IP