Hoodgrown Posted March 31, 2009 Share Posted March 31, 2009 I've seen online stores that when you type in mystore.com it automatically redirects to www.mystore.com. How can I do this? My secure cert is for the "www.mystore.com" so I'd like to keep people on those pages. Link to comment Share on other sites More sharing options...
rocky Posted March 31, 2009 Share Posted March 31, 2009 You need to put code like the following in the .htaccess file in your public_html directory: Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^mystore.com [nc] rewriterule ^(.*)$ http://www.mystore.com/$1 [r=301,nc] Link to comment Share on other sites More sharing options...
Hoodgrown Posted March 31, 2009 Author Share Posted March 31, 2009 okay thanks... Link to comment Share on other sites More sharing options...
Hoodgrown Posted April 4, 2009 Author Share Posted April 4, 2009 WORKS PERFECTLY Link to comment Share on other sites More sharing options...
bejos Posted June 20, 2010 Share Posted June 20, 2010 Here mine :mysite.com become www.mysite.com/mysite.comIs anything wrong with that? Link to comment Share on other sites More sharing options...
Recommended Posts