Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Scripts and Code Snippets
Reload this Page how to hide url extensions? such as .html,.php, etc.
Reply
 
Thread Tools Display Modes
(#11 (permalink))
Old
Junior Member
shalenie is on a distinguished road
 
Posts: 7
Join Date: Jan 2010
Default 01-14-2010, 09:23 AM

Quote:
Originally Posted by splatster View Post
this is what i do
if you have for example thesection.php in the root directory
create a folder named thesection and put thesection.php inside of it and rename the php file to index.php
now if you visit www.yoursite.com/thesection/ your original php file should then be displayed
note that the ending slash MUST be present
this can be done for most url extensions
right! but i prefer doing it in .httaccess file its easier for me (though it took a long time for me to figure out the code) than renaming and creating new folders one by one.
Reply With Quote
Sponsored Links
(#12 (permalink))
Old
Junior Member
verbeck.arnaud@gmail.com is on a distinguished road
 
Posts: 1
Join Date: Mar 2012
Default 03-01-2012, 01:24 PM

Thakns! I have been looking for this for a while.
But now it works on the 000webhost server, it doesn't work locally (so if I open the pages locally after editing or something), the new links that don't point to blabla.html anymore, just blabla, so I was wondering, can I do something similar so my computer will recognize the links?

(btw I don't know if this makes any diference but I use a mac)
Reply With Quote
(#13 (permalink))
Old
Member
willettmatter is on a distinguished road
 
Posts: 61
Join Date: Jan 2012
Location: Idaho
Default 03-14-2012, 04:18 PM

Splatster gave the technic I was going to suggest.

The other idea is to load your additional pages dynamically or in an iframe, then all your people see is your .com address.


willettmatter.com
Reply With Quote
(#14 (permalink))
Old
Junior Member
pattysgraphix is on a distinguished road
 
Posts: 8
Join Date: Mar 2012
Location: Hendersonville, NC
Default 04-01-2012, 04:44 PM

you would have to have the same apache.conf file 000webhost has. and I am more than sure they are not going to tell you thier setup for security reasons.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com