Forum Moderators: coopster
I could think of multiple ways of doing this
1. for each page, have a separate directory, and keep an index.php there. That way people only type http://example.com/section1 instead of http://example.com/section1.php. However, in that case, http://example.com/setion1.php would also work - I don't want it to work.
2. using some apache options(mod_rewrite?) let extension less file names be assumed as being php scripts.
What approach would you recommend? Or is it a bad idea to begin with?
<Directory "/your-directory-tree-to-site">
AddHandler php-script .html
</Directory>
With changing settings I transformed one static HTML file via SSI to currently PHP without the visitors and search engines ever seeing any changing in the URLs.
you may want to change this setting in php.ini as well then
[php.net...]