2013-12-29, 04:17 AM
So Iam simply trying to rewrite subdomain to another url on same site, but it is... REDIRECTING... Whyyyyyy. I wanna rewrite projects.indiearmory.com to indiearmory.com/forumdisplay.php?fid=42 (btw i have google seo plugin installed) Here is my htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^indiearmory\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.indiearmory\.com$
RewriteCond %{REQUEST_URI} !^/forums/
# Don't change the following two lines.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /forums/$1
# Change example.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?indiearmory.com$
RewriteRule ^(/)?$ forums/index.php [L]
RewriteCond %{HTTP_HOST} ^projects\.indiearmory\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.projects\.indiearmory\.com$
RewriteRule ^(.*)$ /forums/forumdisplay.php?fid=42/$1 [P]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^indiearmory\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.indiearmory\.com$
RewriteCond %{REQUEST_URI} !^/forums/
# Don't change the following two lines.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /forums/$1
# Change example.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?indiearmory.com$
RewriteRule ^(/)?$ forums/index.php [L]
RewriteCond %{HTTP_HOST} ^projects\.indiearmory\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.projects\.indiearmory\.com$
RewriteRule ^(.*)$ /forums/forumdisplay.php?fid=42/$1 [P]