469,925 Members | 1,519 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,925 developers. It's quick & easy.

Hiding PHP extension in browser address

18
Hi,all

I wanted to make a system so that in the browser php extension cant be seen. Though I have been able to make it by editing the .htaccess file but I want it such a way that if anyone type the php as extension then it would take him to an error page.
Please help me by giving a .htaccess file where that code is written or give me any useful link. Its very urgent so if you can help quickly then it would help me gain some respect.
Send via Private Mail at this site.
\[email address removed] Thank you all...

Regards
codexxx
May 23 '08 #1
2 1642
Markus
6,050 Expert 4TB
Hi,all

I wanted to make a system so that in the browser php extension cant be seen. Though I have been able to make it by editing the .htaccess file but I want it such a way that if anyone type the php as extension then it would take him to an error page.
Please help me by giving a .htaccess file where that code is written or give me any useful link. Its very urgent so if you can help quickly then it would help me gain some respect.
Send via Private Mail at this site.
\[email address removed] Thank you all...

Regards
codexxx
Such requests, which in all honesty sound like demands, are ignored by myself.

Ask in a considerate way and you may get somewhere.

Regards.
May 23 '08 #2
Atli
5,058 Expert 4TB
You can configure your Apache server to execute custom extensions as PHP files, so if you were to configure it to execute, for example, .cgi files as PHP, then you could change the .php files to .cgi.
If they are then called as .php, they would return the standard 404 error.

Would that work?

Send via Private Mail at this site.
This community is based upon sharing information with everybody. Not just the OP.
Because of that, we won't PM or email solutions, but rather post them here in the forums where everybody can benefit from them.

P.S. Posting your email address in the forums is forbidden by the Posting Guidelines, which everybody should have read before posting here.
May 24 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

21 posts views Thread by R. Rajesh Jeba Anbiah | last post: by
6 posts views Thread by R. Rajesh Jeba Anbiah | last post: by
15 posts views Thread by Sarah Tanembaum | last post: by
15 posts views Thread by Code Monkee | last post: by
16 posts views Thread by KHaled | last post: by
39 posts views Thread by WindAndWaves | last post: by
4 posts views Thread by web_design | last post: by
1 post views Thread by Ansari | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.