MyBB Community Forums

Full Version: Dat .htaccess
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
Can you reword what you're looking for? I can't understand what you wrote.
Okay. Currently, when I enter projects.indiearmory.com, it will redirect me to indiearmory.com/Thread-Projects, but I wanna to show that projects page BUT without url resirwctin. Example: currently, my forums are in subdirectory forums/ but when you enter only indiearmory.com then it will show indiearmory.com/forums without changing url in address bar.
If you want the same content available under multiple URLs (duplicate content), you'd either have to disable Google SEO Redirect, or use another plugin that adapts the bburl dynamically (not recommended).
Thank you very much, it worked Smile