Hello everyone. Here is a breakdown on what I am trying to accomplish.
htaccess help required
5
Hello everyone.
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 :
Thank you very much to anyone who can share some light.
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 :
Code:
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] - Tashi Mortier
- [1] reply
- JoeWunschSEO
- [1] reply
- SteveJohnson
Next Topics on Trending Feed
-
5