![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| [SOLVED] How to remove the .php extention on a URL? So can anyone point me in the direction to do this? If I have a webage that is lets say www.page.com/link.php and I want to be able to get to this page by typing www.page.com/link. So what would be the easiest way to do this? Would it be .htaccess? Thanks for any help on this. |
| |
| ||||
| This link: OSResources - How can I remove the .php extension of my files with Apache and lighttpd? Explains how to do what you want by editing the .htaccess file (if you have one) if not then tell us all and give us more information. __________________ ![]() Great looking text - by just typing into a box you can create great looking text for your msn names, myspace, bebo, netlog, facebook and more |
| The Following User Says Thank You to Lee For This Useful Post: | ||
HelloWorld (09-10-2007) | ||
| |||
| thanks, I do have a .htaccess file. I have tried the above site already. I have the .htaccess 301 redirect in my .htaccess file now and below that I added the following code RewriteRule ^([^\.\?]+)(\?.*)?$ $1.php No luck with it. I have the .htaccess file in my public_html dir also. |
| |||
| Their are directory or folder defaults for a web-server. In IIS you can set any file + extension of a file you want as a default - like index.asp, index.htm, index.html, default.php whatever... Then you just have to have a matching file in that folder... so if you hit blah.com/ and you had a file named index.htm inside that folder, it would display the contents of index.htm Whats really cool is that you never actually have to "Reveal" the filenames - so you could do hello.com/?userid=45&content=edit and they would never know if its asp or php or cfm or what... __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
![]() |
| Thread Tools | |
| Display Modes | |
| |