Announcement

Collapse
No announcement yet.

Help - I want to use to change my index.html page name to index.php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help - I want to use to change my index.html page name to index.php

    Hi - I use my main Actinic Brochure page as the index page to the site. I want to change this from index.html to index.php so that I can insert some php code. Clicking the "Use as website home page" on the page properties witihin Actinic forces the page name back to index.html.

    Is there anything that I can change so that I do achieve what I am trying to do?

    TIA
    Regards
    David

    #2
    Is there anything that I can change so that I do achieve what I am trying to do? ?

    Upgrade to v6 as this allows you to do exactly that.
    I'm afraid there is no way around this limitation in v5. Everytime you upload it changes it back to 'index.html'.

    Comment


      #3
      Hi,

      This won't allow you to change the page names, *but* will allow you to run php on your templates.

      If your site is hosted on a unix server you can add the following line to your httpd.conf and it will run php in .html pages

      .AddType application/x-httpd-php .html

      Failing that create a file called htaccess.txt, add the above code to the file, upload it to your root directory then rename the file on the server to .htaccess

      If everything goes to plan your php code should then work even though the pages have .html extensions

      Hope thats some use to you

      Andyk

      Comment


        #4
        thanks Andy - I'll give it a go.

        It seems a lot of money to upgrade to v6.0 when this is (possibly) the only feature that I want.
        Regards
        David

        Comment


          #5
          mmmmm...I'm afraid that I cannot get it to work. I cannot touch the httpd.conf as it is a shard server. I modified my .htaccess file so that it reads:

          AuthType Basic
          AuthName "Restricted Access"
          AuthUserFile /var/www/home/test/.htpass
          require valid-user

          .AddType application/x-httpd-php .html


          ...but I get the following error when loading the page into the browser:

          "Internal Server Error
          The server encountered an internal error or misconfiguration and was unable to complete your request"

          I've dropped a line to the hosting company to see if they can provide an answer.
          Regards
          David

          Comment


            #6
            ...then again maybe I got it wrong.

            I removed the "." from before the ADDTYPE and it seems to be working ok.
            Regards
            David

            Comment


              #7
              A couple more questions on this...

              Can this be set to just apply to files in one directory?

              The config of my .htaccess file above, which resides in the root directory of my site, applies the php rule to all the files on the site.

              Will the php parser have a noticible affect on the load time for these pages that I do not want parsed?
              Regards
              David

              Comment


                #8
                i dont know how to set it to just one directory (it's probably possible, but i'm not a unix guru... )

                if theres no php content then the load time difference will be negligable (unless your webservers a real dog of a machine)

                Comment

                Working...
                X