How to redirect www. url to non www domain ?
#1
This user has been denied support. This user has been denied support.
Example, i want to use mydomain.site.com instead of www.mydomain.site.com.

And I want, when someone visits www.mydomain.site.com it will automatically redirected to mydomain.site.com


Thanks!
Heart

[Image: logo2.png]
Reply
#2
Google your thread title. You'll find an answer.
Reply
#3
http://tinyurl.com/6ev29sh
Reply
#4
This user has been denied support. This user has been denied support.
But i want from www url' to non www url's

And I want this to apply in my sub domain.
Heart

[Image: logo2.png]
Reply
#5
Yeah, we know, you already said that. It doesn't change anything.

Google it.
Reply
#6
This user has been denied support. This user has been denied support.
OK solve, Thanks faviouz..
Heart

[Image: logo2.png]
Reply
#7
Really, guys? For posterity's sake:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
[Image: 422.png]
Reply
#8
Pro Supporting right there faviouz lmao
Reply
#9
Yeah, god forbid people actually Google things up before posting useless threads. He could have easily found an answer, the same way Steven did. His own thread title is the title of many articles on this subject. This is just being lazy.
Reply
#10
(2011-09-12, 11:03 PM)faviouz Wrote: Yeah, god forbid people actually Google things up before posting useless threads. He could have easily found an answer, the same way Steven did. His own thread title is the title of many articles on this subject. This is just being lazy.
I actually copied it from my .htaccess haha

Regardless, at some point in the future someone will come across this thread. I figured providing the answer would be appropriate.
[Image: 422.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)