Make http://mysite/mypage.htm equal to http://mysite/mypage

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
WASTHEBEST
-


Joined: 10 Oct 2003
Posts: 3

PostPosted: Sat Oct 11, 2003 6:40 pm    Post subject: Make http://mysite/mypage.htm equal to http://mysite/mypage Reply with quote

Sorry if this question has been answered already but I just got tired of looking at the backlog of posts. 8O
(I wish everyone would post with a meaningful subject)

I want to be able to access a webpage without the htm extension:

http://mysite/mypage

instead of

http://mysite/mypage.htm


I know this is possible because I've tried it with established sites.
Back to top View user's profile Send private message
Karasu Kami
-


Joined: 22 Sep 2003
Posts: 712
Location: Colorado

PostPosted: Sat Oct 11, 2003 7:22 pm    Post subject: bleh Reply with quote

have fun trying...i would never go on such a quest...i think taking off the .html would ruin the link(the way it looks) ..

the only way i could see it happening is if you cloaked it...or had some type of program..but im not giving you any leads there because i dont know either..
_________________
Thank you all. Aprelium most importantly.
*Some may not be complete*
http://paeon-hosting.com
http://quartermoon.info
http://loc.paeon-hosting.com
http://genjipoetry.paeon-hosting.com
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Sat Oct 11, 2003 11:24 pm    Post subject: Re: Make http://mysite/mypage.htm equal to http://mysite/myp Reply with quote

WASTHEBEST wrote:
http://mysite/mypage

instead of

http://mysite/mypage.htm


I know this is possible because I've tried it with established sites.


It is - i use dir (folders) inside the htdocs dir :!:

eg: servername/login

would be servername/login/ and then linking to your defalut page (eg index.html

Is that what you were looking for :?:
_________________
Olly
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Oct 12, 2003 5:01 pm    Post subject: Re: Make http://mysite/mypage.htm equal to http://mysite/myp Reply with quote

As said olly86, create a subdirectory in htdocs/ called mypage and put your HTML file inside it and rename it index.html . When accessing http://mysite/mypage , the server will act as if you typed http://mysite/mypage/index.html .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Mon Oct 13, 2003 6:21 pm    Post subject: Re: Make http://mysite/mypage.htm equal to http://mysite/myp Reply with quote

aprelium wrote:
As said olly86, create a subdirectory in htdocs/ called mypage and put your HTML file inside it and rename it index.html . When accessing http://mysite/mypage , the server will act as if you typed http://mysite/mypage/index.html .


Correct...

Making sure that either default.htm(l) or index.htm(l) is the root page of the directory/folder...should produce the results you're looking for...
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
WASTHEBEST
-


Joined: 10 Oct 2003
Posts: 3

PostPosted: Wed Oct 15, 2003 7:18 pm    Post subject: Reply with quote

I'm sure there's great utility to what you guys have suggested, but it seems to be a workaround to the actual problem. I guess the actual issue that I should have brought forward is if there is a way to get the server to reinterpret mypage to mypage.htm (with the htm extension.) In some sites, when you type in
http//mysite/mypage
the browser's address bar automatically reasserts itself as
http//mysite/mypage.htm

This may very likely be a coding issue of the page or the server itself. Of course this will be my responsibility to determine which it is; I bring it up here to zerro in on the solution.

The reason why I place such emphasis on this problem is because although this is merely a cosmetic issue, it nonetheless provides transparency and consistency to visitors of a standard webpage.
Back to top View user's profile Send private message
nirvanasource
-


Joined: 31 Oct 2003
Posts: 6

PostPosted: Fri Oct 31, 2003 10:51 pm    Post subject: Reply with quote

I'm no veteran, but you could set up an alias maybe.

Show Console>Server Config>Advanced>Aliases

Virtual Path:
mysite/mypage

Real Path:
mysite

You would have to add "mypage.htm" to the Index Files list in Server Parameters.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group