Forums

How to add an exception to mod_rewrite rules in htaccess (3 posts)

  1. UncleSam
    Member
    Posted 3 months ago #

    Hello, everyone,

    I encountered a hard task for me trying to make several things. First, I have an installation of Wordpress with permalinks enabled (focused.ru), here's the htaccess contents^

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

    I also have a forum (/forum) installed that uses the question marks in the syntax which causes scripts run from there to be caught by WP, so I cannot even upgrade the forum from inside (a good thing in Hostgator).
    Another problem is with showing and functioning of Google Friend Connect — the html files I placed in the root dir don't seem to function the way they should, redirecting to some place unknown by wp (it tries to rewrite them as well).

    So, my question is,
    can I somehow exclude the directory name /forum/ from being rewritten and canvas.html and rpc_relay.html as well just by adding a couple of lines in htaccess file?

    Very grateful for any input and excuse me if this arises again — I failed to find a result.

  2. samboll
    moderator
    Posted 3 months ago #

    your /forum folder should have an .htaccess file as well as your root. is this the case?

  3. UncleSam
    Member
    Posted 3 months ago #

    It doesn't, but I don't want to change anything in the forum file, but make changes in WP htaccess file to exclude the dir and files I stated above.

Reply

You must log in to post.

About this Topic