Support » Fixing WordPress » How to have wordpress ignore certain urls when using RewriteEngine

  • hey ya’ll — not sure what to call this issue…but here’s what i’m trying to do…

    right now, I have the wordpress address URL set to http://www.mydomain.com/wordpress, and the blog address set to http://www.mydomain.com

    I have created my own PHP page (outside wordpress) residing at http://www.mydomain.com/search2.php

    my issue is that I am trying to make friendly urls for my search2.php page (ie: http://www.mydomain.com/search2/varname/varvalue), but wordpress (seeing as how it has it’s re-write turned on) catches search2 page as a non existing page. Is there a way to have wordpress “ignore” certain urls for it’s rewrite engine?

    (I also realize I may not be using the correct terms, such as rewrite engine) — perhaps, in the htaccess I can put a line of code that ignores certain urls?

    here’s my current .htaccess:

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

  • The topic ‘How to have wordpress ignore certain urls when using RewriteEngine’ is closed to new replies.