/    Sign up×
Community /Pin to ProfileBookmark

index.pl or index.php instead of index.htm

This might not be in the right forum but it seems to fit into multipul forum categories, so I believe that general is the right place for this.

Hey, can someone point me in the right direction?

When entering my website at [url=Ultimiacian.tripod.com]Ultimiacian.tripod.com[/url], the first page you see is the index.htm page.
is there a way to make that address refer to index.pl or index.php instead of the plain old html index?
I know that redirection is an alternative but I’ve seen people use index.pl as their directory before.
I know that in-order to do this, I will need to do some server-side fancy work…

I think I remember hearing something about CFM…
(I have no idea what it stands for or if I even spelled it right ? )

Any ideas?

to post a comment
Full-stack Developer

12 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterauthorApr 18.2005 — Hmm, I did some reserch and found out that CSM is the extension for Cold Fussion.

That rings a bell. One of them Server-Side languages that is supported by very few Servers. Well, that is not an alternative that I will want to resort to...

Anyone have any other ideas? I know that this is possible to do because I've seen it done before...
Copy linkTweet thisAlerts:
@FangApr 18.2005 — [URL=http://httpd.apache.org/docs-2.0/misc/rewriteguide.html#content]Apache rewriting[/URL], look at "From Old to New" or "From Static to Dynamic"

Or even [URL=http://www.javascriptkit.com/howto/htaccess6.shtml]DirectoryIndex[/URL]

CMF > Content Negotiation ???
Copy linkTweet thisAlerts:
@UltimaterauthorApr 18.2005 — Thanks Fang for the links!

So, all i need to do is create a file called: [b].htaccess[/b]

and give a one-line content:
<i>
</i>DirectoryIndex index.pl


Is that really it!? Wow! Tight!

Thanks again Fang!
Copy linkTweet thisAlerts:
@FangApr 18.2005 — .htaccess must be uploaded as ASCII
Copy linkTweet thisAlerts:
@UltimaterauthorApr 18.2005 — OK...

One more question...

How can my index.pl file run out side of the cgi-bin directory?

I want my main-level to refer to cgi-bin/index.pl

Would I write the .htaccess as follows?
<i>
</i>DirectoryIndex cgi-bin/index.pl
Copy linkTweet thisAlerts:
@webgovernorApr 18.2005 — Not on my pc, (I just installed Apache 2 and PHP 5 tonight...)

Anyway, I just set the DirectoryIndex to index.html index.php index.pl

And all the sub directories load the index files just fine.

However, lets say that you go to localhost and index.pl is under localhost/cgi-bin/index.pl

Then you might have to.

Sorry for not having a definitive answer, I'm just freakin' thrilled!

Oh, and good luck!
Copy linkTweet thisAlerts:
@UltimaterauthorApr 18.2005 — Are you saying that if my main-level directory is [color=royalblue]www.blah.com[/color]

that I would put a single .htaccess file in the main-level directory and put the index.pl file in a sub-directory, [color=royalblue]cgi-bin[/color]?


If I did such, wouldn't the index.pl file only be ran if I enter the location [color=royalblue]www.blah.com/cgi-bin/[/color]?

My question is how can a PL or PHP file run outside of the cgi-bin directory?

What I'm trying to do is set my [color=royalblue]index.pl[/color] file as the DirectoryIndex file for main-level directory. However, how can such a file run outside of the cgi-bin folder?
Copy linkTweet thisAlerts:
@webgovernorApr 19.2005 — What I'm trying to do is set my index.pl file as the DirectoryIndex file for main-level directory. However, how can such a file run outside of the cgi-bin folder?[/QUOTE]

Well, for me, it runs under www.blah.com just fine, it's not in a CGI folder, but

it's also PHP, I dunno about Perl, but I'm assuming it'd work.

(As long as DirectoryIndex has index.pl listed)...

You could always copy it to the main directory and delete the current index.html(make a backup) and see if it runs, on my server (Red Hat 9 with Apache 2) it works fine...

Well, good luck!
Copy linkTweet thisAlerts:
@ray326Apr 19.2005 — Tripod's not going to handle any of this is it?
Copy linkTweet thisAlerts:
@UltimaterauthorApr 19.2005 — Well, I'm currently using Tripod, and It won't handle any of this as you say because they won't let me name any such file starting with a period.

However, there is always the hacking alternitive ?

But I wouldn't do that because I'm gonna buy or rent myself a domain name anyways, so it's nice to know in advance -- all of this information.
Copy linkTweet thisAlerts:
@Jeff_MottApr 19.2005 — To get your .pl files to execute as CGI add the following to the htaccess file.Options +ExecCGI
AddHandler cgi-script .pl
Copy linkTweet thisAlerts:
@UltimaterauthorApr 19.2005 — Thanks Jeff Mott!

Btw: I will break that SHA-1 Algorithm, yet! ?

I got a cracking stratagy now :eek:

When I input a string into the program and gain my Hash,

I'll follow all the exact steps that the computer does on paper and figure-out how to make the reverse-engine.

Hey, If I never crack the code, the next generation won't have to when the world "sees" the development of the Quntum Computer.
×

Success!

Help @Ultimater spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...