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

Sub foder in server not working with htaccess

Discussion in 'PHP' started by ismailctg, Jul 12, 2011.

  1. ismailctg

    ismailctg New Member

    Joined:
    Jul 12, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    I have a website directory and there i used a folder named 'sub'. inside this folder i place "arts.php" page.

    When i browse with "sysdirectory.com/sub/arts.php" link not going to appropriate page.

    When i remove the .htaccess page then going to appropriate page.

    htaccess code is:

    Options +FollowSymlinks
    RewriteEngine on

    RewriteRule ^search/([^/]+)/([^/]+)/?$ /search.php?pagenum=$1&input=$2 [L,QSA]
    RewriteRule ^submit/([^/]+)/([^/]+)/?$ /addsite.php?cat=$1&subcat=$2 [L,QSA]
    RewriteRule ^([^/]+)/([^/]+)/([^/]+)/?$ /shortpro.php?cat=$1&subcat=$2&pagenum=$3 [L,QSA]
    RewriteRule ^([^/]+)/([^/]+)/?$ /product1.php?no=$1 [L,QSA]

    Please help me....
     
  2. pein87

    pein87 New Member

    Joined:
    Aug 6, 2010
    Messages:
    173
    Likes Received:
    47
    Trophy Points:
    0
    Occupation:
    Web Dev
    Location:
    Limbo
    Technically this isn't my area of expertise(this is more of a server issue then a php one) but I bet its the fact that your not specifying that path for a rewrite. Add a new rule for that directory and it should work. If not check a how to on .htaccess files.
     

Share This Page