htaccess help required
Here is a breakdown on what I am trying to accomplish.
i own Example Web Page.
I have always used htaccess to redirect non-www to www for duplicate content issues.
I have been using a forum for 2 years in a subdomain forums.example.com with a vbulletin forum.
Many of these threads have PR, 25,000 indexed pages, etc, so I do not just want to delete the domain -- I want them all to be 301'd to my main domain page.
What is happening with my current code, is while it is redirecting
http://forums.example.com -> Example Web Page without a problem, the problem is when it is a thread being redirected.
for example this thread - - forums.example.com/showthread.php?t=5525
it will instead redirect to -- Example Web Page
I am not sure what is wrong with my code that is making that appear at the end, can anyone offer any insight?
I have left my code below :
RewriteEngine on +FollowSymLinks rewritecond %{http_host} ^forums.example.com [nc] rewriterule ^(.*)$ http://www.example.com/ [r=301,nc] rewritecond %{http_host} ^example.com [nc] rewriterule ^(.*)$ http://www.example.com/$ [r=301,nc]
Want to read my personal blog? Tashi Mortier
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."