Loading ...
Sorry, an error occurred while loading the content.

RE: [bang-phpug] hiding the php file name

Expand Messages
  • Ankur Dave
    Use the funda of .htaccess file of apache. You have to write the RewriteRulecreate a new file put in the root dir of your folder go to file save it as
    Message 1 of 2 , Jan 24 8:47 PM
      Use the funda of .htaccess file of apache.
      You have to write the RewriteRule

      create a new file
      put in the root dir of your folder
      go to file save it as '.htaccess'
      upload it

      For eg --
      RewriteRule ^index/?type=delete /path/to/file/index.php?type=delete

      or try this too

      RewriteRule (.*)\.htm[l]?(.*) $1.php$2

      Save all your file as .html so this will automatically take this as .php
      as extension.

      If you are using the debian linux and then you have to enable the
      .htaccess by this
      a2enmod rewrite

      and some more things chk this toooo --

      for hiding file name & ext. code is:

      <Files filename.php>
      order allow,deny
      deny from all

      or hide all files with ext:
      IndexIgnore *.php *.jpg

      or protect file:
      <Files "filename.php">
      AuthType Basic
      AuthUserFile "/path/to/your/htpasswd/file/.htpasswd"
      AuthName "webFileBrowser"
      Require valid-user

      I think this is what you want. :)

      Ankur Dave
      my blog :: http://ullu.wordpress.com

      -----Original Message-----
      From: bang-phpug@yahoogroups.com [mailto:bang-phpug@yahoogroups.com] On
      Behalf Of ravi chandran
      Sent: Wednesday, January 24, 2007 6:59 PM
      To: bang-phpug@yahoogroups.com
      Cc: in-phpug@yahoogroups.com
      Subject: [bang-phpug] hiding the php file name

      can anyone please help me , how to hide the file name of .php extension?
      the url has to show like this
      intead of this

      Yahoo! India Answers: Share what you know. Learn something new

      Yahoo! Groups Links

      The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.

    Your message has been successfully submitted and would be delivered to recipients shortly.