| View previous topic :: View next topic |
| Author |
Message |
xplan
Joined: 30 Jul 2010 Posts: 23
|
Posted: Jun 02, 2011 6:57 am Post subject: How to redirect www to non www with mod rewrite |
|
|
i try to put some code
| Code: | RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301] |
it dose not work |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1283
|
Posted: Jun 02, 2011 9:17 am Post subject: |
|
|
| Not sure why you need that in xfilesharing, as it always will redirect to domain name which you have in config file. So, if you have "yoursite.com" in config (and in license), then it will redirect there, even user will type www.yoursite.com in browser. |
|
| Back to top |
|
 |
xplan
Joined: 30 Jul 2010 Posts: 23
|
Posted: Jun 03, 2011 3:27 am Post subject: |
|
|
Thank for your advice
but i found it
must to put that code
at thie first line after |
|
| Back to top |
|
 |
|