• Hi,

    I´m using WP with permalinks [domain.de]/%category%/%postname%/

    Now I want to have a second application under [domain.de]/customerportal/

    I´m always getting a 404 (from WP rewrite rules) when I try to open the new application path. I´ve found and tested so much examples for rewrite rules but nothing had help me.

    The last thing I´ve tried was this

    <IfModule mod_rewrite.c>
    RewriteEngine On
    rewriteCond %{REQUEST_URI} ^/customerportal/
    rewriteRule .* - [L]
    </IfModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Do you need further information? Please help me.

    Thanks.

    Steffen

Viewing 2 replies - 1 through 2 (of 2 total)
  • try this

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/customerportal(/.*)?$ [NC]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    If it works (it does for me) believe me, I am not a mod_rewrite guru. I got that code from someone who is.

    Thread Starter Steffen Jung

    (@bubble1973)

    Hey, thanks stvwlf, it does also work for me! Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Running WP together with other applications / Rewrite / Permalinks’ is closed to new replies.