Click to See Complete Forum and Search --> : Mixing CNAME entries and mod_rewrite


kudzugazette
03-05-2009, 04:23 PM
So I have a domain server with the domain kudzugazette.com, and I have an installation of wordpress running at mainecampus.kudzugazette.com/wordpress. I set up a CNAME entry so blogs.mainecampus.com points to mainecampus.kudzugazette.com/wordpress, but now I want to be able to use mod_rewrite to turn on clean urls, and I'm having some problems. Some help would be greatly appreciated.

This is what was already in the .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mainecampus.kudzugazette.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.mainecampus.kudzugazette.com$
RewriteRule ^blogs/?(.*)$ "http\:\/\/mainecampus\.kudzugazette\.com\/wordpress\/$1" [R=302,L]

Here's what WordPress wants me to put in the .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


Is there a way I can merge the two?
Thanks!