Options +Indexes RewriteEngine on RewriteRule ^go-(.*)-(.*).html$ index.php?go=$1&id=$2 [L,NC] RewriteRule ^(.*)-(.*)-(.*).html$ index.php?go=$2&id=$3 [L,NC] RewriteRule ^([0-9]+)/[^/]+/([0-9]+)/$ index.php?go=subcat&id=$1&pageNum_pages=$2 [L,NC] RewriteRule ^([0-9]+)/.*$ index.php?go=subcat&id=$1 [L,NC] <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> The above is my current .htaccess. It worked fine until i added the IFMODULE which is needed for permalinks on my WP blog. Now I get 404's in my directory but the blog shows fine. Woohoo Anyone know how to have your cake and eat it too?
why not have seperate .htaccess files? Just have 1 in your /usr/acnt/site.com/blog/ and one in your /usr/acnt/site.com/directory/ folder, both setting different modrewrites
Remove the blog code from this .htaccess, and put it in seperate .htaccess file placed inside the blog directory... I think that will work... Bye edit--- should have typed faster...