+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: index.html to index.php ???

  1. #11
    Join Date
    Jul 2004
    Posts
    902

    Default Re: index.html to index.php ???

    Quote Originally Posted by ResaleBroker
    Rustin, after reading this thread again I realized you did mention "Domain." Sorry about that.
    All good! thanks again!
    Search Homes for Sale in SAN DIEGO and other San Diego Real Estate via the San Diego MLS.

  2. #12
    Join Date
    Sep 2004
    Location
    Czech Republic
    Posts
    159

    Default Re: index.html to index.php ???

    Quote Originally Posted by webmaster
    RewriteRule ^(.*).html $1.php [L]
    This is good solution, but IMO better will be add to your .htaccess file this code
    AddHandler application/x-httpd-php .php .phtml .htm

    which forces server parse PHP code contained in files with extension htm.
    Vlado Tovarnak

    "The more I want to get something done, the less I call it work."
    "In order to win, you must expect to win."

    by RICHARD BACH


    http://www.ValuesGuide.com is now producing and providing leads for real estate agents

  3. #13
    Join Date
    Jul 2004
    Posts
    902

    Default Re: index.html to index.php ???

    Thanks Vlado,
    So I could just add my php script to my html pages and leave the extention the same here too as well and the .html would work like a .php?
    I'll try it...!

    Add the whole line:
    AddHandler application/x-httpd-php .php .phtml .htm

    Would it work adding more to it?
    AddHandler application/x-httpd-php .php .phtml .htm .html .shtml
    Search Homes for Sale in SAN DIEGO and other San Diego Real Estate via the San Diego MLS.

  4. #14
    Join Date
    Sep 2004
    Location
    Czech Republic
    Posts
    159

    Default Re: index.html to index.php ???

    Quote Originally Posted by SanDiego
    Would it work adding more to it?
    AddHandler application/x-httpd-php .php .phtml .htm .html .shtml
    Yes, it should.
    Vlado Tovarnak

    "The more I want to get something done, the less I call it work."
    "In order to win, you must expect to win."

    by RICHARD BACH


    http://www.ValuesGuide.com is now producing and providing leads for real estate agents

  5. #15
    Join Date
    Jul 2004
    Posts
    902

    Default Re: index.html to index.php ???

    yep, it does! Thanks for the code Vlado! Works Great!
    Search Homes for Sale in SAN DIEGO and other San Diego Real Estate via the San Diego MLS.

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Posting Permissions

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