mod_rewrite again and general question for adding it into apache-special

Discussion in 'Installation/Configuration' started by xxfog, Feb 11, 2010.

  1. xxfog

    xxfog Member

    Hi folks,

    i used search for hours now, but did not find a answer to my question, I hope someone can help me:

    I am Using Wordpress for some of my clients
    Now I want to set up the following
    in Sites > Optionen > Apache Direktiven

    I wrote:

    <IfModule mod_rewrite.c>
    <Directory /var/www/[sitename]/web/>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Does ISPConfig insert the Sitename automatically (as a VARIABLE) if I write [sitename] or do I have to write the sitename in format domain.tld by myself?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to write the sitename yourself. But its also not needed, just leave out the directory directives as the rules are inserted into the vhost, they will get applied to this vhost only.

Share This Page