The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Handler for .html files

Discussion in 'EasyApache' started by ccccanada, Nov 29, 2003.

  1. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    is there a way to setup an Apache Handler for .html files that is both application/x-httpd-php and server-parsed?

    Thanks
     
  2. N9ne

    N9ne Well-Known Member

    Joined:
    Jan 7, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England
    Could use an .htaccess file:

    <Files *.html>
    ForceType application/x-httpd-php
    </Files>
     
  3. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the info but it did not work together with the apache handler application/x-httpd-php.

    I have asked my client to use front page instead together with that handler and that is working fine now.

    Thanks
     
  4. hostcp3

    hostcp3 Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Use this


    RewriteEngine on
    RewriteRule ^([a-zA-Z0-9]+)$ /index.php?page=$1
    RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?page=$1&second=$2
    RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?page=$1&second=$2&third=$3
    RewriteRule ^([a-zA-Z0-9]+)\.html$ /home [R]
     
Loading...

Share This Page