Made a Linkworth Sale - But All My Pages are .htm

Discussion in 'Pay Per Click Advertising' started by travoholic, Dec 5, 2006.

  1. #1
    Hey guys,

    I've managed to sell my first ever link through Linkworth (a rotating ad) but the instructions are for PHP, ASP, CFM or Perl pages and I'm still dabbling in the wonderful world of boring old HTML with SSI files.

    Can someone let me know the best way to approach this? Should I convert my main site to .php and how do I do that? Should I set up a 301 redirect from index.htm to index.php (or whatever I end up using)?

    Is there a dummies guide to getting started? Thanks!

    Kirsty
     
    travoholic, Dec 5, 2006 IP
  2. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #2
    If you are running Apache you should be able to manage it without changing your file extensions by using .htaccess.
    Include this line in your .htaccess file in your root directory...

    AddType application/x-httpd-php .htm
    Code (markup):

    This will force the server to parse .htm files as .php

    You can then include the php code in your site and it should work.
    This will not change how the rest of your html code is displayed..
     
    livingearth, Dec 5, 2006 IP
  3. stock_post

    stock_post Prominent Member

    Messages:
    5,213
    Likes Received:
    249
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Looks like an excellent idea.

    I am not a PHP geek but this sounds like some thing we can do
     
    stock_post, Dec 5, 2006 IP
  4. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Hey let me know how it works out for you..
     
    livingearth, Dec 5, 2006 IP
  5. techtutorial

    techtutorial Guest

    Best Answers:
    0
    #5
    thanks livingearth, that worked great for my friend trying to do the same thing.

    I had ready it before but it did not seem to work the way we were trying to set it before.
     
    techtutorial, Dec 10, 2006 IP
  6. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #6
    if you are presently using the .html extension you will have to change the code line accordingly...
     
    livingearth, Dec 14, 2006 IP