RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
How to redirect www to non www with mod rewrite

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
xplan



Joined: 30 Jul 2010
Posts: 23

PostPosted: Jun 02, 2011 6:57 am    Post subject: How to redirect www to non www with mod rewrite Reply with quote

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
View user's profile Send private message Visit poster's website
admin
Site Admin


Joined: 22 Mar 2006
Posts: 1283

PostPosted: Jun 02, 2011 9:17 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
xplan



Joined: 30 Jul 2010
Posts: 23

PostPosted: Jun 03, 2011 3:27 am    Post subject: Reply with quote

Thank for your advice

but i found it

must to put that code

at thie first line after
Code:
RewriteEngine On
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group