1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need some quick php domian help

Discussion in 'BlackHat Lounge' started by kez1000, Mar 11, 2010.

  1. kez1000

    kez1000 Supreme Member

    Joined:
    Jul 24, 2009
    Messages:
    1,402
    Likes Received:
    1,340
    Location:
    UK
  2. kranium

    kranium Newbie

    Joined:
    Dec 27, 2008
    Messages:
    22
    Likes Received:
    3
    Why index2? call it index.php and the root will work without it by default. Otherwise you'll have to change your .htaccess file, add a line that looks like this:

    DirectoryIndex index2.php

    That should do the trick.
     
    • Thanks Thanks x 1
  3. kez1000

    kez1000 Supreme Member

    Joined:
    Jul 24, 2009
    Messages:
    1,402
    Likes Received:
    1,340
    Location:
    UK
    where do i add that line

    ive screeeewed up the site

    have a look ..it now shows up as index of

    i created a htaccess file

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
    </IfModule>

    <IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
    </IfModule>
     
  4. kez1000

    kez1000 Supreme Member

    Joined:
    Jul 24, 2009
    Messages:
    1,402
    Likes Received:
    1,340
    Location:
    UK
    thanks mate ive got it sorted
     
  5. kez1000

    kez1000 Supreme Member

    Joined:
    Jul 24, 2009
    Messages:
    1,402
    Likes Received:
    1,340
    Location:
    UK
    thanks got it sorted