|
|
|
kazey (m)
|
This can be done using mod-rewrite.
RewriteEngine On RewriteRule ^advice$ /advice.html [L]
|
|
|
|
|
|
uspry1 (f)
|
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)
|
@ uspry1 thank guy but i already know about that. @ kazey  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)
|
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)
|
@ kazey This can be done using mod-rewrite.
RewriteEngine On RewriteRule ^advice$ /advice.html [L]
 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)
|
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)
|
@ kazey  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> </html>
|
|
|
|
|
|
|
|