The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SEO friendly redirect + questions
I am using forums in the / forums with no landing page.
Now I know a 301 redirect is the best SEO friendly redirect using .htaccess Code:
Redirect 301 /old/old.html http://www.you.com/new.html I can do this with the .htaccess file using this code Code:
RewriteEngine On rewritecond %{http_host} ^yoursite.com rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L] Code:
RewriteEngine On rewritecond %{http_host} ^yoursite.com rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L] Redirect 301 /old/old.html http://www.you.com/forums |
#2
|
||||
|
||||
does it work when you use both ?
|
#3
|
|||
|
|||
Not sure that is what I am asking.
|
#4
|
||||
|
||||
Hi there,
I am facing a similar issue here. I managed to redirect from http://domain.net to http://www.domain.net with this htaccess trick Quote:
My question is how can I redirect http://domain.net/forum to http://www.domain.net/forum ? The code below does not seem to work. Quote:
Thanks |
#5
|
||||
|
||||
Have you thought about the opposite approach and actually dropping the usage of www. It's somewhat redundant unless you are using an alternative to the www config.
|
#6
|
|||
|
|||
No I never really thought about dropping the www.
With the www or without the www I still would like to beable to redirect eithier domain.com to www.domain.com and/or www. domain.com to domain.com I would also like to redirect the same with the /forums Any ideas would be great. I mean i know if a user types in domain.com I can redirect to www. or the other way. Now what is there go directly to the forums ? what would be the code to redriect that ? |
#7
|
||||
|
||||
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} ^YOURSITEURL\.com$ [NC] RewriteRule ^(.*)$ http://www.YOURSITEURL.com/$1 [R=301,L] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|