| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Fri Sep 01, 2006 6:45 pm Post subject: redirect forum adress |
|
|
| Hello, i want to redirect my forums in subdomains from something.com to -www.something.com, what is the best htaccess redirect for this please?? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sat Sep 02, 2006 9:42 am Post subject: Re: redirect forum adress |
|
|
The www prefix redirection is working for all case in such matters, as long as you use this one :
| Code: |
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301] |
which is making sure your domain with the www prefix is the one to be used.
Anything not matching it and leading in this folder will be HTTP 301 redirected to the correct domain. If both domains are not set in the same physical folder, you'll have to implement this rule in both.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |