Hi,

what does it mean http://localhost/drupal/user/password?

You people have done drupal in php. So it has to to be extension in .php only. can anyone please explain me?.because i want to know the coding so that i can change in my way...

Comments

jaypan’s picture

What?

Contact me to contract me for D7 -> D10/11 migrations.

devaraj-dupe’s picture

sir,
when i request a new password i see in the url bar http://localhost/drupal/user/password.i dont understand this bar.because i clearly mentioned to you,when the php program will be in .php extension.example password_request.php. Now its something like /user/password. When i need to search somewords from the request password i could got tension.so only i asked you to explain me the concepts,how we will use without extension pf .php...............

JayNL’s picture

just because stuff is written in PHP, doesn't mean you can only have files with a .php extension :)

the URL system of drupal works TOTALLY different, you might want to read some more documentation before making your next post here.

Good luck!

jaypan’s picture

It wasn't that clear mate. But I get what you are asking now.

The real URL is localhost/drupal/index.php?q=user/password, but using Apache's mod rewrite function, it re-writes the URL to localhost/drupal/user/password.

So you type this in to your browser: localhost/drupal/user/password
And the server sends the data from this page to the browser: localhost/drupal/index.php?q=user/password

Edit: And as Jay August said (lots of Jays in this thread :D), php doesn't have to be a PHP extension. It all depends on how the server is configured. I've written PHP files with a .html extension in the past, and sometimes I like to use .jay as an extension.

Contact me to contract me for D7 -> D10/11 migrations.

devaraj-dupe’s picture

Thank you.