Directory Browing [phpLD]

Discussion in 'HTML & Website Design' started by SEOdir.net, Jun 25, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Helo,
    I have installed blog (wordpress) in the subfolder of my phpld but I cant access it, I see directory when I o to http://www.seodir.net/blog

    I think there is something miss with .htaccess, but I duno what, can you help me ? here is .htaccess:

    #################################################
    ## PHP Link Directory - Apache Server Settings ##
    #################################################
    
    # Protect files
    <Files ~ "^(.*)\.(inc|inc\.php|tpl|sql)$">
      Order deny,allow
      Deny from all
    </Files>
    
    # Protect directories
    <Files ~ "^(backup|files|images|include|lang|libs(/.+)?|temp(/.+)?|templates(/.+)?|javascripts(/.+)?)$">
      Order deny,allow
      Deny from all
    </Files>
    
    # Disable directory browsing
    Options -Indexes
    
    # Follow symbolic links in this directory
    Options +FollowSymLinks
    
    # Override PHP settings that cannot be changed at runtime
    # (If your server supports PHP settings via htaccess you can comment following two lines off)
    # php_value register_globals   0
    # php_value session.auto_start 0
    
    # Customized error messages
    # ( If you are running in a subfolder please add it, example: "directory/index.php?httpstatus=404" )
    ErrorDocument 404 /index.php?httpstatus=404
    
    # Set the default handler
    DirectoryIndex /index.php
    
    # URL rewrite rules
    <IfModule mod_rewrite.c>
    
       RewriteRule ^email-([0-9]*).html$ email.php?id=$1 [L]
       RewriteRule ^refer-([0-9]*).html$ refer.php?id=$1 [L]
       RewriteRule ^report-([0-9]*).html$ report.php?id=$1 [L]
    
       RewriteEngine On
       RewriteCond %{HTTP_HOST} ^seodir.net$ 
       RewriteRule ^(.*)$ http://www.seodir.net/$1 [R=permanent,L]
       RewriteBase /
    
       ## Details Link Page Rewrite##
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-l
       RewriteRule (.*)detail/link-(.*).html$ detail.php [QSA,NC]
    
       ## Pagination Rewrite
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-l
       RewriteRule (.*)page-(\d+)\.html$  $1/?p=$2 [PT,NC]
    
       ## Category redirect
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-l
       RewriteRule ^(.*)$ index.php$ [QSA,L]
    
    </IfModule>
    
    Code (markup):
     
    SEOdir.net, Jun 25, 2007 IP
  2. SEOdir.net

    SEOdir.net Banned

    Messages:
    2,549
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    173
    #2
    Ok I just removed this line:
    # Set the default handler
    DirectoryIndex /index.php
    Code (markup):
    Now its working perfect :)
     
    SEOdir.net, Jun 25, 2007 IP
Thread Status:
Not open for further replies.