Is it possible to add interactive features to a HTML website?

morpheus

New Member
I'm aiming to add some features to an existing website without changing the addresses, so that the html extension would be retained. I'd like to allow user comments to be added ie product reviews. Can this be done with a HTML extension?

I'd also like to use an include function to insert menus and repeating elements into pages without copying and pasting to every instance. Is this possible with a HTML extension?

Is it possible to use components in Dreamweaver with a HTLM extension?
 

jcollings89

New Member
you could perhapse write it in a language using a different file extension such as .php, .cfm or .asp .

In your .htaccess write the following
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [nc]

This code allows you to use .php files , but they will be displayed as .html files. Hope this helps you out
 

morpheus

New Member
I tried it and it works with php files, but it doesn't seem to work with shtml if I change php to shtml or add it at the end like this:

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php $1.shtml [nc]
 

jcollings89

New Member
Do you want it to change .php files to be viewed as .shtml, or do you want .shtml files to be viewed as .html
 

jcollings89

New Member
Add for each type of file you want to appear as .html add
Code:
RewriteRule ^(.*)\.hmtl$ $1.(PAGE EXTENSION HERE) [nc]
For Example:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [nc]
RewriteRule ^(.*)\.html$ $1.shtml [nc]

Haven't really done much with the .htaccess files so i am just hoping it works, have not tested it.
 
Top