help with revolving banner php script in a .html (not showing~!)

Discussion in 'HTML & Website Design' started by IanT, Jul 11, 2010.

  1. #1
    im trying to make a revolving banner ad show up on my page (using php) but I dont want to convert my pages to html for google ranking reasons etc... the current site is www.smftutorials.com.

    I edited the .htaccess to include these lines:

    RemoveHandler .html .htm
    AddType application/x-httpd-php .php .htm .html
    Code (markup):
    this is the root folder for the testing page:
    www.smftutorials.com/testing


    the main page is named template.html

    the revolving banners arent showing though??? hmmmm what am I doing wrong?
     
    IanT, Jul 11, 2010 IP
  2. Sandino

    Sandino Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try this ->

    AddType application/x-httpd-php .htm .html
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html -f
    RewriteRule ^(.*)$ $1.html

    instead of what you had.

    can you show an example of where you are doing this? or the code
     
    Sandino, Jul 13, 2010 IP