Aliases and Rewrite Rules

Discussion in 'Apache' started by rederick, May 31, 2007.

  1. #1
    Hi,

    I am attempting to set up an apache "Alias" that also has rewrite rules involved.
    Wondering if anyone can give me some assistance with this.

    I have set up an alias from the domain Like so
    Alias /folder/ "/var/www/vhosts/domain.com/httpdocs/folder/"

    which works just fine except that I have some rewrite rules in the "folder"
    like so...

    RewriteRule ^index.html$ index.php [L]

    It doesn't seem like apache is even reading my .htaccess file....


    Hope that makes sense and is enough information.

    Thank you,
     
    rederick, May 31, 2007 IP
  2. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Issue Solved:

    The Aliased folder did not have

    AllowOverride All

    so it could not even read the .htaccess file

    and I added this to the .htaccess file and all is working

    RewriteBase /folder/

    :)
     
    rederick, May 31, 2007 IP