HOME
EXPLORE
FIND FRIENDS
PEOPLE MAP
MATCH
CHANNELS
Trending Channels
Funny
Funny Text Messages
News
Social Media
Entertainment
Sports
Technology
Programming
Gaming
Travel
Celebrity Snapchat
Blog
Badges
About
FAQ
Privacy Policy
Terms of Service
Download Dizkover app
Copyright © 2024 Dizkover Media, LLC
All rights reserved.
Dizkover is not affiliated with Snapchat, Kik, Skype, or any other services platform linked on this website.
Dizkover
Sign in
Programming
htaccess redirect www to main domain non-www
#htaccess
@admin
Updated July 12, 2013 ● 653 views
Programming
If you want your website to redirect www to non-www domain. You only need to put the following rules in the
.htaccess
file:
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
0
Comments
Close
Comment
More in Programming
2
Solution: #jQuery image upload resize is not working due to memory_limit in #PHP
▶︎
1
#jQueryTips: How to detect #AdBlock using #jQuery?
▶︎
2
Solution: #Eclipse weird keyboard backspace delete key suddenly stopped working
▶︎
1
Solution: #PHP: Handling json_encode data in html data attribute
▶︎
2
Solution: #PHP DOMDoc-ment::loadHTML(): htmlParseStartTag: invalid element name in Entity
▶︎
2
Solution: How to close Twitter #Bootstrap popover with a click anywhere on the page using #jQuery
▶︎
5
Solution: #jQuery #bootstrap popover focus not working in Chrome
▶︎
4
#jQuery fileupload for dynamically added input field
▶︎
1
#Joomla: Fort Disco Brute-Force Attack Campaign Targets CMS Websites
▶︎
1
Free #Joomla Templates available at JoomlaHacks
▶︎
✕
Top
Latest
Channels
People
×
Alert!
This website uses cookies. By continuing to use this site, you are accepting our
Privacy Policy
and
Terms of Service
.
Accept and Continue
htaccess redirect www to main domain non-www #htaccess
Updated July 12, 2013 ● 653 views
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]