phpld 2.2 & htaccess issue

Discussion in 'Directories' started by gt1991, Mar 21, 2009.

  1. #1
    I'm trying to get the mod rewrite to work in the .htaccess in phpld 2.2

    My hosting is 000webhost.com

    I know the mod rewrite module is enabled in Apache.

    I have seem to tried everything to make it work but can't

    Example of one of my category url is http://directory.com/index?c=8

    Any help would be appreciated.

    Here is my .htaccess in my root directory.

    #################################################
    ## PHP Link Directory - Apache Server Settings ##
    #################################################

    # Protect files
    <Files ~ "^(.*)\.(inc|inc\.php|tpl|sql)$">
    Order deny,allow
    Deny from all
    </Files>

    # Protect directories
    <Files ~ "^(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

    # Set the default handler
    DirectoryIndex index.php

    # URL rewrite rules
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    ## Category redirect
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^(.*)$ index.php [RQSA,L]
    </IfModule>
     
    gt1991, Mar 21, 2009 IP
  2. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #2
    I have seen many hosts do not like this line:

    
    RewriteBase /
    
    Code (markup):
     
    jitendraag, Mar 21, 2009 IP
  3. marki8

    marki8 Well-Known Member

    Messages:
    977
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    135
    #3
    version 2.2... i not sure what are you asking... but try go to System >> Edit Setting >> Directory and take a look at Enable URL rewrite put it at YES
     
    marki8, Mar 22, 2009 IP