Raiper34 Posted July 27, 2013 Share Posted July 27, 2013 Hi, i have subdomain buildasnowman.raiper34.net but when i write this subdomain with www, it does not work. I try all possible and inpossible with .htacces but nothing work... I think i make mistake somewhere... but i do not know where...Now onyl work buildasnowman.raiper34.net but i want to make, that all work... without www and with www... Please help... Quote Link to comment Share on other sites More sharing options...
P.Uri.Tanner Posted July 27, 2013 Share Posted July 27, 2013 For that kind of question, google might be a better place to start with. But here is your answer anyways Hope it helps:Force WWWRewriteEngine OnRewriteCond %{HTTP_HOST} ^your-site.com [NC]RewriteRule ^(.*)$ http://www.your-site.com/$1 [L,R=301] Remove WWWRewriteEngine OnRewriteCond %{HTTP_HOST} !^your-site.com$ [NC]RewriteRule ^(.*)$ http://your-site.com/$1 [L,R=301] Quote Link to comment Share on other sites More sharing options...
Raiper34 Posted July 27, 2013 Author Share Posted July 27, 2013 Thanks i tried this but no effet.... but server admin solved it... Quote Link to comment Share on other sites More sharing options...
Chris Posted July 27, 2013 Share Posted July 27, 2013 It hurts my feelings every time when I see something like that Look, you have toplevel domains, domains and subdomains.http://ebay.com The Toplevel Domain is ".com" - the domain is "ebay".We have NO subdomain here. Then, there is:http://www.ebay.com We have the toplevel Domain ".com", the domain "ebay" and the SUBDOMAIN "www".The subdomain www was often applied in the beginnings of the internet to show people: You will find a webserver here. No Telnet, FTP or whatever. So when you say you have this: buildasnowman.raiper34.net (We have: TLD ".net", Domain "raiper34" and subdomain "buildasnowman") And you say you want to prefix that with a "www." - my heart starts to bleed. No offense. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.