Padzy Posted February 19, 2007 Share Posted February 19, 2007 Hi, I'm looking to hide the .php file extension in the address bar of a browser. I.e www.stuff.com/about.php >> www.stuff.com/about I'm fairly sure this can't be done (and don't really understand why anyone would want to) but never the less my superiors have asked me so I have to find an answer. If anyone can even give me a definite 'no' on this I'd appreciate it. Thanks Quote Link to comment Share on other sites More sharing options...
Greaser9780 Posted February 19, 2007 Share Posted February 19, 2007 http://www.phpfreaks.com/tutorials/34/0.php Quote Link to comment Share on other sites More sharing options...
Padzy Posted February 19, 2007 Author Share Posted February 19, 2007 Thanks a million! Quote Link to comment Share on other sites More sharing options...
Greaser9780 Posted February 19, 2007 Share Posted February 19, 2007 I saw it a couple days ago and thought of it.NP Quote Link to comment Share on other sites More sharing options...
Balmung-San Posted February 19, 2007 Share Posted February 19, 2007 You might want to look into mod_rewrite for apache. It's a much better solution then that, but it requires access to .htaccess files. Quote Link to comment Share on other sites More sharing options...
sspoke Posted February 20, 2007 Share Posted February 20, 2007 ya or just put every file in folders that are called like about and inside put your about.php renaming it to index.php looks good in my project Quote Link to comment Share on other sites More sharing options...
Greaser9780 Posted February 20, 2007 Share Posted February 20, 2007 What does your about.php contain? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 20, 2007 Share Posted February 20, 2007 .. it's your about.php. not his. Use mod_rewrite, this is what it's for. I'm fairly sure this can't be done (and don't really understand why anyone would want to) Anything can be done, you just have to try. The reason why you'd WANT to is it looks a lot nicer, mostly. It's called clean urls. It's better for things like SEO. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.