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.

.htaccess, AddType application/x-httpd-php .php .htm .html, and maybe a Fix...

Discussion in 'Co-op Advertising Network' started by LegalClipper, Jan 8, 2005.

  1. focused313

    focused313 Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #21
    that worked for me as well.
    SEMrush
    I guess this code is host specific, because on my private server, I uploaded it in binary and left chmod as it was and it worked fine. Thanks.
     
    focused313, Nov 11, 2009 IP
    SEMrush
  2. bhebsquines

    bhebsquines Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Up! same problem her. how can i find my .htaccess? in my apache2 setting or on my web directory? thanks
     
    bhebsquines, Jul 8, 2010 IP
  3. jagtig

    jagtig Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    I didn't restrict myself where file types were concerned, and things just got better and better. Below is an example:Just change the path-to-root and everything takes care of itself, after that. The htaccess files are placed in the folders where the scripts are running; anything in the root directory has a fifty-fifty chance of either working or breaking the site. Caching has to be done at the same time to prevent a chasm from widening between Apache's handlers and the default handlers. That will slow things down. Rewriting must be done, as well, to prevent the domain processing software from mucking things up, as it is doing on my own site as I write these words. The .flat and .txt files are considered active files for scripting purposes; data files and the like. Ps. I didn't write the bones of the code, below; I just added to and then tested and tested until I settled on what you see.AddHandler application/x-httpd-php .php .php3 .php4 .php5 .htm .html .js .flat .txtAddType application/x-httpd-php .php .php3 .php4 .php5 .phtml .htm .html .js .flat .txtRewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]RewriteRule ^(.*)$ http://%1/path-to-root/$1 [R=301,L]Header set Cache-Control "max-age=2592000" Use Files match with Cache; I don't know this forum syntax.
     
    jagtig, Oct 22, 2012 IP
  4. danielnorton

    danielnorton Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #24
    LegalClipper your first post (remove 'application/) fixed the same problem for me. Just wanted to take time out to say a big thank you! IOU two hours of my life.
     
    danielnorton, Jan 22, 2013 IP