How to set RewriteBase to parent directory?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lagon666
    New Member
    • Jun 2009
    • 22

    #1

    How to set RewriteBase to parent directory?

    I have a .htaccess file in the directory called "test" in my "public_htm l"

    I want to set an option for htaccess file that when i browse "test" directory, it include the "index.php" file that exists in "public_htm l" directory.

    I think it may be like this but it didnt work.
    Code:
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase ../
    	RewriteRule ^(.*)$ index.php?q=admin/$1 [L,QSA]
    </IfModule>
  • Lagon666
    New Member
    • Jun 2009
    • 22

    #2
    Any idea about this?

    Comment

    Working...