If you want to redirect http://www.example.com to http://example.com, you can use this:RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^/?$ "http\:\/\/example\.com\/" [R=301,L]- If you want to redirect http://example.com to http://www.example.com, you can use this:RewriteCond %{HTTP_HOST} !^www.example.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Monday, March 9, 2015
- Posted By: Unknown
- Comments: 14 comments
Great Post
ReplyDeleteOnline Bookmark Manager
Nice and Great Blog
ReplyDeleteGalapagos Islands
Love These Kind of Blogs
ReplyDeletealternative nespresso compatible capsules
Good to See This Blog
ReplyDeletelunch delivered
Wish You A Great Post Ahead
ReplyDeletediwali wishes
Your Letters Will Mark More
ReplyDeleteOKI C831-TS LED Laser Printer
Thanks for sharing the knowledge
ReplyDelete24 Hour Plumbers
Thanks for sharing...
ReplyDeletehow to lose weight fast
Good Post...
ReplyDeletetaxi el salvador
Nice Sharing...
ReplyDeletelearn to build apps with no code
Great post... Everyone must read
ReplyDeleteEnglish speaking bucharest property managers
You Should Post More Often..
ReplyDeleteAnti-insect company in the city in Yanbu
Nice Blog, See You Soon..
ReplyDeletehouse painters
Happy To See the Information
ReplyDeleteLiverpool emergency locksmith