Sunday 5 June 2011

How can I assign a non-html page as the default home page ?

I need to assign a .pl (Perl Script) extension file as the home page of my URL. I have tried this but once I changed the file name to non-html page, it%26#039;s not working. If I changed it to index.html, it is displaying as home page, but at this time Perl script doesn%26#039;t working. Anyone can help me ?|||Assuming you -- or your hosting service -- are using Apache as your web server, look at the DirectoryIndex setting. (See Apache%26#039;s website, look in the online documentation.) This setting determines what file is used as the default index file.





This setting can be changed in the httpd.conf (the overall configuration) file, or -- if your system is configured to allow it -- in your .htaccess file in your site%26#039;s directory.





The default setting is index.html. You can change it to anything else, and can even list multiple names. (The first matching name it finds will then be used.)





Make sure you have Perl set to be run properly. (See the AddType and AddHandler directives.)





If you%26#039;re NOT running Apache web server, there is probably something similar in YOUR web server software. Check the documentation.





Good luck!|||if the page is local, put that path in.....and save it as the homepage|||Just add a redirect code to index.html or us a frame.|||could you set a html page as the index and in it put a redirectional link to the .pl page?





(index.html auto-redirects to the .pl page in other words)


_|||Web sites generally only accept specific types of pages. The common ones are html (or htm), php, or asp. You would need the server configured to accept other pages. You are better to use an index.html with the script in it, this will work if your script is written correctly.