does anyone know how they got rid of the ".php" in this url
http://www.createthegroup.com/en/who...o=JamesGardner
does anyone know how they got rid of the ".php" in this url
http://www.createthegroup.com/en/who...o=JamesGardner
Last edited by ggalan; 01-21-2011 at 02:14 AM.
It's the index file, so you just access it by typing the name of the directory:
site.com/directory/
site.com/directory/index.php
Those go to the same place.
And for both you can add a query string using the ? symbol.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
but how can you hide the "index.php" when you add the query?
if you placed it
then the "index.php" would be visibleCode:index.php?var=foo
Well, one way is:
That hides that it's the index, the other method is doing it with htaccess.Code:www.website.com/?var=hello
so something like this?
and inside a folder called 'somefolder' you would have a "index.php"
Code:<a href='somefolder/?var=hello '></a>
ggalan (01-21-2011)
In other words, "index.php" and similar default filenames* can always be omitted from URLs and everything that goes before AND everything that goes after remains as it was. Mathematically: X+index.php+Y = X+Y.
(*php, html, asp and other "html" filetypes, named index.ext, home.ext, default.ext, and perhaps more, depending on your server configuration. I've never known of a server where index isn't the default like that.)
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
ggalan (01-21-2011)
Bookmarks