Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2004
    Posts
    72

    Hiding PHP help!

    Some website can change: www.site.com/index.php => www.site.com/index.gxg or index.something...

    I don't know how're they do that?
    Note: I can not change php.ini of PHP or httpdocs of Apache because I'm only a client, not webmaster.

    Thanks so much.

  2. #2
    Create a file called ".htaccess" in the same directory as your .gxg files (or a parent directory) and put this in it:

    Code:
    <Files ~ ".*\.gxg">
      ForceType application/x-httpd-php
    </Files>

  3. #3
    Join Date
    Feb 2004
    Posts
    772

    *

    Hi,

    As OIS suggested, you should create a .htaccess file and specify the index file you want.

    You can use the DirectoryIndex option to specify the index file.
    Use AddType option to specify the MIME types.

    Ex)
    DirectoryIndex index.gxg
    AddType text/html gxg

    For more details you can refer the link given below:
    http://www.auburn.edu/helpdesk/html/htaccess.html

    Regards,

  4. #4
    Join Date
    Jan 2004
    Posts
    72
    thanks, I tested and it work correctly.

  5. #5
    another alternative is in your httpd.conf file add it to the PHP's AddType option.

    AddType application/x-httpd-php .php .php3 .gxg

  6. #6

    Re: Hiding PHP help!

    Originally posted by mr5
    Some website can change: www.site.com/index.php => www.site.com/index.gxg or index.something...

    I don't know how're they do that?
    Note: I can not change php.ini of PHP or httpdocs of Apache because I'm only a client, not webmaster.

    Thanks so much.
    whoops.

    forgive me
    I didnt read your entired post.

  7. #7
    Dont think this will improve your security if thats your motivation. Its a common fallacy.
    "The only difference between a poor person and a rich person is what they do in their spare time."
    "If youth is wasted on the young, then retirement is wasted on the old"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •