Can Somebody Help Me With Apache Extension Handler.

A Member? Please Login  
type your username and password to login
Date: November 22, 2008, 08:32 PM
264021 members and 161027 Topics
Latest Member: uyia
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: Sam Milla, uspry1)  |  Can Somebody Help Me With Apache Extension Handler.
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Can Somebody Help Me With Apache Extension Handler.  (Read 209 views)
charliebiz (m)
Can Somebody Help Me With Apache Extension Handler.
« on: April 11, 2008, 03:45 PM »

can somebody out there help me with my apache handler extension. Hw do i use or change my extension from abc.html to abc when somebody types it on the web browser.instead of typing www.canyouhelp.com/advice.html for it to www.canyouhelp.com/advice alone on the web browser.
 
 
kazey (m)
Re: Can Somebody Help Me With Apache Extension Handler.
« #1 on: April 11, 2008, 04:55 PM »

This can be done using mod-rewrite.

RewriteEngine On
RewriteRule ^advice$ /advice.html [L]
uspry1 (f)
Re: Can Somebody Help Me With Apache Extension Handler.
« #2 on: April 11, 2008, 05:05 PM »

For example, you would create new HTML directory folder named "engine" and upload abc.html (should be index.html or default.html) on that "engine" folder by accessing on your web hosting control panel or FTP software. (SEE PICTURE BELOW)

You would type the following URL that appears ALONE like this "www.yourdomainname.com/engine"



You also can rename the HTML directory folder "engine" to "advice" the same folder.

charliebiz (m)
Re: Can Somebody Help Me With Apache Extension Handler.
« #3 on: April 18, 2008, 02:31 PM »

 @ uspry1
    thank guy but i already know about that.
 @ kazey  Huh
Sorry guy i did nt get you.

  What i meant is a file( excluding the default or index page) under a folder to be type directly in the browser without the extension eg, .html. www.canyouhelp.com/contactus instead of typing www.canyouhelp.com/contactus.html

  i simply explanation on how to use apache to handle it.
uspry1 (f)
Re: Can Somebody Help Me With Apache Extension Handler.
« #4 on: April 18, 2008, 02:54 PM »

You still not get it what I gave you explanation above that will display without adding the extension, by ADD A FOLDER placing (index.html) inside.

GOOD LUCK!
charliebiz (m)
Re: Can Somebody Help Me With Apache Extension Handler.
« #5 on: April 21, 2008, 04:14 PM »

@ kazey
Quote from: kazey on April 11, 2008, 04:55 PM
This can be done using mod-rewrite.

RewriteEngine On
RewriteRule ^advice$ /advice.html [L]
Huh
 Where do i get the mod-rewrite quote and how do i go about it.

@ uspry1
what about the oda files in the folder. how do i make them extensionless.
kazey (m)
Re: Can Somebody Help Me With Apache Extension Handler.
« #6 on: April 21, 2008, 06:53 PM »

Create a .htaccess file and simply add the code i stated before, it should be in the root of the public folder, and a thank you would do.
charliebiz (m)
Re: Can Somebody Help Me With Apache Extension Handler.
« #7 on: May 11, 2008, 09:48 PM »

Quote from: charliebiz on April 21, 2008, 04:14 PM
@ kazey Huh
 Where do i get the mod-rewrite quote and how do i go about it.

@ uspry1
what about the oda files in the folder. how do i make them extensionless.



Thank you kazey, i have gotten it.

Do you know about PHP. I am looking for a teacher to put me through some codes. i know the php codes, atleast to some extent but i think i am jumboing it somewhere when i am uploading my file. Do i upload it directly on my public html folder?

 Please, i need a helping mind and head.

 Below is a code i tried to upload to my website but it was blank.

<?php
session_start();
// store session data
$_SESSION['unique id']=12;
?><html>
<body><?php
//retrieve session data
echo "This is your unique identity". $_SESSION['unique id'];
?></body>
&nbsp;</html>
uspry1 (f)
Re: Can Somebody Help Me With Apache Extension Handler.
« #8 on: May 12, 2008, 01:13 PM »

Go see existing thread to learn how to configure apache handler to employ .htaccess file at below link provided:

http://www.nairaland.com/nigeria/topic-110588.0.html#msg1927118
 Partnership With Nigerian Webmasters  Signonafrica Is Recruiting Web Developers  Hi Guys This Is My Only Source Of Income  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.