How to hide webpage extension?

vievie

Member
Messages
97
Reaction score
0
Points
6
Code:
http://WWW.FRJP.CO.NR/
I don't think you can hide the extension of the webpage, becaues evenually it will show up in your url. However, you could always direct the URL to only the directory level, and the server will automatically load the index.html file. For example, typing in
Code:
http://WWW.FRJP.CO.NR/

would automatically go to:

Code:
http://WWW.FRJP.CO.NR/INDEX.HTML

Hope that helps...

What purpose are you trying to achieve if you hide the webpage extension? If you really want, you could so something with php that parses most of the webpage information so that your web coding is safe..
 
Last edited:

RamRam

New Member
Messages
60
Reaction score
0
Points
0
Code:
http://www.phpfreaks.com/tutorials/34/0.php


It May Be Help You!
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
How to hide the extension of a webpage?

For example

http://WWW.FRJP.CO.NR/INDEX.HTM LOOKS LIKE
http://WWW.FRJP.CO.NR/INDEX ?


Ok, I am new to web hosting, but I created a series of cgi scripts that basically mask the page to be viewed.

A quick eg:

You enter the page via "http://WWW.FRJP.CO.NR/"
Automatically your browser takes you to "http://WWW.FRJP.CO.NR/index.html"

There after all links in the page are sent to one cgi script with paramters that tell the script to do certain things.
a link eg: http://WWW.FRJP.CO.NR/script.pl?link=login=12+32+43
the script pulls out everything after the ? "link=login=12+32+43"
The "link" is one of a few commands. The script then calls upon the "link" script and passes it "login=12+32+43"
login is the location of the content of the page and the following is parms(formating, etc...)

All in all the only file being pointed to is the /script.pl.

Therfore all links are hidden and can also have info sent to them for whatever reasons.

When I have finished I will apply a template for coding and decoding so from this "http://WWW.FRJP.CO.NR/script.pl?link=login=12+32+43" i could have this "http://WWW.FRJP.CO.NR/script.pl?5s4f=fdsa2=12+32+43" (example and no acctual relation).
 
Top