i got a folder with many htm files
and i got one cgi script ...located in same folder
Now i want to give the cgi file a html extension
so visitors dont know its a cgi ...
i created a .htaccess file
AddHandler cgi-script .htm
now i have renamed the script.cgi to script.htm
and it works the script loads fine and has name script.htm
but now problem is all other htm files are giving a 501 error as the .htaccess says there scripts.
is there a extra line i can add to the .htaccess or other trickto run the script as htm and the htm files as plain htm pages?
but i can not name it html all files must be named htm
as other sites are aready linking to the htm pages
and one htm page i wish toreplace with a script
site links curently to page.htm
soon iwant toreplace page.htm for a cgi script named page.htm
but how can i keep other htm pages load as normal html source pages?
is there a sort adhandler that says only page.htm can wotk as cgi?
The capabilties of htaccess files are justendless and powerfull
.htaccess is only the place to configure your webserver. The capabilities here are provided by the mod_rewrite module. To use this capabilities, mod_rewrite must be installed on your server; on virtual server accounts it is very often not installed, because it costs some CPU time.