Question:
How can I assign a non-html page as the default home page ?
shatvm
2007-09-21 16:51:47 UTC
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's not working. If I changed it to index.html, it is displaying as home page, but at this time Perl script doesn't working. Anyone can help me ?
Six answers:
GFC
2007-09-21 17:12:22 UTC
Assuming you -- or your hosting service -- are using Apache as your web server, look at the DirectoryIndex setting. (See Apache'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'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're NOT running Apache web server, there is probably something similar in YOUR web server software. Check the documentation.



Good luck!
anonymous
2007-09-21 17:56:32 UTC
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.
erfahren
2007-09-21 17:08:08 UTC
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)

_
ashlan
2016-12-17 12:11:33 UTC
on the some distance acceptable, click on web site subject concerns. A field will arise and on the main appropriate of the field it says web site subject concerns, next to it it says lower back to classic view. click that and additionally you're stable to pass!
anonymous
2007-09-21 17:06:36 UTC
Just add a redirect code to index.html or us a frame.
anonymous
2007-09-21 16:55:13 UTC
if the page is local, put that path in.....and save it as the homepage


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...