The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> A question about file extensions
Jester335
post Dec 29 2008, 06:04 AM
Post #1





Group: Members
Posts: 6
Joined: 29-December 08
Member No.: 7,419



Greetings from the newbie,

I'm not new to web design, HTML or any other markup language used for web pages, but I was just wondering is it possible to create your own file extension (i.e. thispage.fnwp) and make it work like a regular page (i.e. thispage.htm) I've created several unique file extensions to simply act as a .txt file on my web sites, but I recently got the above idea to create a file extension that would act as an HTML page, can anyone help me out here?

~Jester


--------------------
Proud owner of: Playstation 3, Wii, Xbox 360, Playstation 2, iPod Touch 2G 16GB, iPhone 3G 8GB.
Strong points: HTML, ASP, ASP.NET, PHP ||| Visual Basic.NET, C#, C++.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 29 2008, 06:25 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,367
Joined: 9-August 06
Member No.: 6



Sure. It's just a matter of configuring the server to serve .jester with the content-type 'text/html'. If you are on Apache, you can do that with .htaccess. smile.gif


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Jester335
post Dec 29 2008, 06:45 AM
Post #3





Group: Members
Posts: 6
Joined: 29-December 08
Member No.: 7,419



Ahh, thanks, I should have seen that one, but I don't deal with .htaccess much.


--------------------
Proud owner of: Playstation 3, Wii, Xbox 360, Playstation 2, iPod Touch 2G 16GB, iPhone 3G 8GB.
Strong points: HTML, ASP, ASP.NET, PHP ||| Visual Basic.NET, C#, C++.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Dec 29 2008, 11:58 AM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,008
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Be careful reusing file extensions that MS Windows knows about. MSIE has a tendency to ignore the server-provided content-type, and assume a file's type based on the file extension.


--------------------
Darin McGrew
WDG Member since 1998
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 2nd September 2014 - 04:07 AM