Forums

WordPress + other custom rewrite rules (3 posts)

  1. tipem
    Member
    Posted 3 years ago #

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

    That's my rewrite code. What would be the code to have my own custom rewrite rule for "mysite.com/out/mysite/"?? I want that to go to /wp-out.php?sid=$1. I've tried numerous variations but haven't gotten anything to work without breaking wordpress. Thanks.

  2. tipem
    Member
    Posted 3 years ago #

    anybody know how to?

  3. tipem
    Member
    Posted 3 years ago #

    This works:

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

Topic Closed

This topic has been closed to new replies.

About this Topic