WordPress and WoltLab rewrite rules incompatable?

  • I have WordPress installed in my site's root directly /and WoltLab is installed in a sub-folder /community/ When making my .htaccess file I notice merging them always results in an internal server error. I would like to continue using both but it would appear the rewrite riles together are incompatible.


    Does anyone know how to successfully merge these two?



    edit: The code is not displaying correctly for me so I have attached the files below. ;)


    WordPress

    Code
    # BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule># END WordPress


    WoltLab

    Code
    <IfModule mod_rewrite.c>RewriteEngine onRewriteBase /# Rewrite application /blog/RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^blog/(.*)$ blog/index.php?$1 [L,QSA]# Rewrite application /calendar/RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^calendar/(.*)$ calendar/index.php?$1 [L,QSA]# Rewrite application /gallery/RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^gallery/(.*)$ gallery/index.php?$1 [L,QSA]# Rewrite application /filebase/RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^filebase/(.*)$ filebase/index.php?$1 [L,QSA]# Rewrite application /forum/RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^forum/(.*)$ forum/index.php?$1 [L,QSA]# Rewrite application /cms/RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^cms/(.*)$ cms/index.php?$1 [L,QSA]# Rewrite application /wcf/RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^wcf/(.*)$ wcf/index.php?$1 [L,QSA]# Rewrite application /RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^(.*)$ index.php?$1 [L,QSA]</IfModule>


    If anyone knows how to merge these together I would be happy to hear it. :)

  • Attached the files in post #1 since clearly the code is a mess in my post. If anyone can offer a solution it would be very helpful. Thank you in advance. :)

  • I cannot comment on Wordpress or rewrite rules as I don't understand that stuff, but the Wordpress and WoltLab software must always be in separate directories on your server, don''t merge them!

    I am a Newbie Admin. Please be gentle, I don't understand technical things.
    (Please can we have a full manual for this software)

  • I cannot comment on Wordpress or rewrite rules as I don't understand that stuff, but the Wordpress and WoltLab software must always be in seperate directories on your server, don;'t merge them!

    I understand they must be in independent directories but as good practice you only want 1 htaccess file for your site. I tried to enable the friendly urls for WoltLab and it keeps telling me that my site is incompatible and I assume it is because it is looking at my root directory / as opposed to /community/ Or have I found a bug?

  • Try to use: RewriteBase /community/ instead of RewriteBase /

    Edit: Actually that won't work. You can't change your rewritebase inside a single .htaccess file. Hold on.

  • Try to use: RewriteBase /community/ instead of RewriteBase /

    Edit: Actually that won't work. You can't change your rewritebase inside a single .htaccess file. Hold on.

    Thank you very much for taking the time to answer my inquiry. This worked out nicely.