Hi I am a php programmer. I found in some sites hide their page type . For eg:
www.some.com/lal?some=some&somemore=somemore.
insted of
www.some.com/lal.php?some=some&somemore=somemore.
Please help me How can i do that
Thanks
Rajeesh
Hi I am a php programmer. I found in some sites hide their page type . For eg:
www.some.com/lal?some=some&somemore=somemore.
insted of
www.some.com/lal.php?some=some&somemore=somemore.
Please help me How can i do that
Thanks
Rajeesh
My guess would be that 'lal' is a directory, and the query string is for the default file in there.
So 'www.some.com/lal?some=some&somemore=somemore' would actually go to 'www.some.com/lal/index.php?some=some&somemore=somemore.'
Just a guess, I can't think of a site off the top of my head that uses this though, could possibly be a mod_rewrite, but I doubt it, possibly just sloppy coding.
This is done in Apache server's .htaccess hidden file. If you google for information on how to change the settings in .htaccess you will find many examples.
yes it can be done by htaccess file. and i agree lal may be a directory and the parameters will go on index page.
Lookup Mod_Rewrite (You would need it enabled on your server though so talk to your HP to see if they do this, most do)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.