Rewrite Rules

  • Unknown's avatar

    My ubuntu host requires me to use the following rewrite rule;

    RewriteRule ^wp-content/(.*)$ /srv/www/wp-content/%{HTTP_HOST}/$DB

    I am trying to install BuddyPress and it requires me to use the rewrite rule;

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    I have tried putting both rewrite rules in my htaccess file and I get 404 errors. I don’t know the syntax of whatever language the rewrite engine is using, can anyone suggest a rule that incorporates both of these?

  • Unknown's avatar

    So it turned out to just be that AllowOverride was set to None. One thing to watch out for in Ubuntu is that there are many different configuration files. I changed AllowOverride to All for a few of the configuration files, but there was another, I think it was apache2.conf, that was still there and had /srv/www/ which is where my content is set to AllowOverride None.

  • Unknown's avatar

    Sorry but you are in the wrong forum.
    This forum is only for blogs/sites hosted by WordPress.com

    WordPress.COM and WordPress.ORG are completely separate and different http://support.wordpress.com/com-vs-org/

    And you should ask in the WordPress.org forum.
    http://wordpress.org/support/

  • The topic ‘Rewrite Rules’ is closed to new replies.