mod rewrite question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    mod rewrite question

    how can i make the html files to execute php code to just one of my domains form my server?
  • piker
    Confirmed User
    • Feb 2004
    • 597

    #2
    Originally posted by alex79
    how can i make the html files to execute php code to just one of my domains form my server?
    ok now ask your question in english please.
    IcooCash - DVD Content for your TGP
    Cheap FreeBSD Virtual Hosting
    ICQ me at 605104 for Custom PHP/MySQL Programming

    Comment

    • Mr.Fiction
      Confirmed User
      • Feb 2002
      • 9484

      #3
      Originally posted by alex79
      how can i make the html files to execute php code to just one of my domains form my server?
      Are you saying you want .html files to execute as .php files?

      AddType application/x-httpd-php .html
      Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

      Comment

      • alex79
        Confirmed User
        • Jun 2002
        • 996

        #4
        sorry for my english

        i have a page xxx.html and i want run php code in this html page (i don't want to change the page extension)
        i know that is a method to change the mor rewrite (or something like that) in the httpd.conf file but i want allow html file to execute php code just on one domain of mine ( not on all domains hosted on same server)..
        is any other method to execute php code in html files? with .htacess for example?

        hope u understand now

        Comment

        • alex79
          Confirmed User
          • Jun 2002
          • 996

          #5
          Originally posted by Mr.Fiction


          Are you saying you want .html files to execute as .php files?
          yes.. that what i want

          Originally posted by Mr.Fiction

          AddType application/x-httpd-php .html
          where do i have to enter this line? in httpd.conf or in .htaccess ?

          Comment

          • crescentx
            Confirmed User
            • Jun 2003
            • 317

            #6
            In .htaccess should work if your server is configured properly.

            -doug
            XYCash International Gay Affiliate Program

            Comment

            • Wilber
              Confirmed User
              • May 2001
              • 1295

              #7
              Why not use server side includes or a *.js include?
              Sig NOT for sale

              Comment

              • JD
                Too lazy to set a custom title
                • Sep 2003
                • 22651

                #8
                i think it's < p h p i n c l u d e="" >

                not sure though

                Comment

                Working...