I am using the htaccess file for a project that is using the following rules:
RewriteEngine on
RewriteRule ^page/([^/\.]+)/?$ page.php?page=$1 [L]
RewriteRule ^([^/\.]+)/?/([^/\.]+)/?$ page.php?theme=$1&pg=$2 [L]
RewriteRule ^([^/\.]+)/?$ page.php?theme=$1&pg=$1 [L]
RewriteRule ^([^/\.]+)/?/$ page.php?theme=$1&pg=$1 [L]
which effectively changes domain.com/theme/page to domain.com/page.php?theme=theme&pg=page.
The problem i have is that i’m also using a wordpress install on this project, installed under domain.com/blog.
so, visiting domain.com/blog is rewriting to domain.com/page.php?theme=blog and breaks the wordpress install.
is there a way i can set an exception to the rewrite rule so that domain.com/blog will properly load the wp blog?
Try excluding
/blogfrom being processed as follows