Multiple Blogs on same domain
-
I have seen this issue previously, but I’m not sure if the solutions apply here (and if they do, I’m not sure how I’d go about resolving them – namely, the renaming of databases so they don’t share the same prefix… my reselling provider seems to require account-name prefixes on every database)
But I have two blogs located at these fictitious urls:
https://www.url.com/blog1 https://www.url.com/blog2
They work fine from the start page, but I wish to use permanent links, and the rewrite rule I have present seems to guide which blog, settings and database is being accessed… when I click on the common ‘hello world’ initial entry in blog 2 with blog1 activated in htaccess file, it goes to blog1, and vice versa… obviously it works fine within the blog that’s active in the htaccess.
I’ve tried having a second rewriterule in the htaccess file, both inside and outside the little provided if statement, but it doesn’t want to recognize it, seeing only the first.
Is there a proper way to have two rewrite rules in the htaccess, or is that even possible?
Here is my htaccess code
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog1/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog1/index.php [L] RewriteBase /blog2/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog2/index.php [L] </IfModule>
- The topic ‘Multiple Blogs on same domain’ is closed to new replies.