Plz help with htacess

Discussion in 'PHP' started by octalsystems, May 18, 2009.

  1. #1
    Hi,

    plz help me with htaccess

    i installed the AdultVideoScript 1.1.3
    in a subfolder of the domain

    like example.com/folder

    here is the htaccess code

    # Comment the 2 lines below if the server returns 500 errors!
    Options -Indexes
    Options +FollowSymLinks

    #Uncomment following lines if you want to use image caching!
    #<IfModule mod_expires.c>
    # ExpiresActive On
    # ExpiresDefault A1209600
    # ExpiresByType text/html A1
    #</IfModule>

    # Uncomment following lines if Apache doesnt support MultiViews!
    <IfModule mod_rewrite.c>
    RewriteEngine On

    # Uncomment the 2 lines below if you are using www.domain.com
    # as the baseurl for the site and users access your site
    # via domain.com (THIS IS REQUIRED FOR JQUERY TO WORK)
    #RewriteCond %{HTTP_HOST} ^domain.com [NC]
    #RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* loader.php [L,QSA]
    </IfModule>

    # Edit below lines and set to
    # ErrorDocument CODE /RELATIVE/error.php
    # If the script is installed in the default document
    # root then relative is null.
    #ErrorDocument 401 /error.php
    #ErrorDocument 403 /error.php
    #ErrorDocument 404 /error.php




    but when i tries to access the example.com/folder/login it gives me 404 error
    but if i installs on root it works fine

    i think it is related to rewrite rule .may be the rewrite rule need some modificatiion becoz of installation in subfolder


    plz help me.

    Thank You for reading this
     
    octalsystems, May 18, 2009 IP
  2. NateJ

    NateJ Active Member

    Messages:
    240
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Have you tried putting the sub-folders name before the:

    RewriteRule .* loader.php [L,QSA]

    So it'll be:

    RewriteRule .* subfolder/loader.php [L,QSA]

    I'm not saying it will work, but hey, give it a go and let me know how it goes :)
     
    NateJ, May 18, 2009 IP
  3. octalsystems

    octalsystems Well-Known Member

    Messages:
    352
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #3
    octalsystems, May 18, 2009 IP
  4. NateJ

    NateJ Active Member

    Messages:
    240
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Does the script not come with better instructions?
     
    NateJ, May 18, 2009 IP
    octalsystems likes this.
  5. octalsystems

    octalsystems Well-Known Member

    Messages:
    352
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #5
    lol thankx what a fooolish mistake i was doing
     
    octalsystems, May 18, 2009 IP
  6. octalsystems

    octalsystems Well-Known Member

    Messages:
    352
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #6
    rep given ;)
     
    octalsystems, May 18, 2009 IP