swatijain2233 Posted February 3, 2018 Report Share Posted February 3, 2018 Hello friends, I would to know that How to redirect a url without www ? Link to comment Share on other sites More sharing options...
ORLOVA Posted February 6, 2018 Report Share Posted February 6, 2018 You can redirect all of the requests for yourdomain.com domain to www.yourdomain.com by modifying your website's .htaccess file. You need to add the following lines at the beginning of the file in order to setup that redirection: 1 2 3 RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] Link to comment Share on other sites More sharing options...
sinelogixtech Posted February 7, 2018 Report Share Posted February 7, 2018 Hello :) The following third-party URL seems to offer a manual workaround for what you are looking for: http://www.inmotionhosting.com/support/website/htaccess/redirect-without-changing-url Thank you. Link to comment Share on other sites More sharing options...
Stevendavis Posted February 7, 2018 Report Share Posted February 7, 2018 Sharing a link with you, hope it will resolve your issue. http://www.webhostinghub.com/help/learn/cpanel/redirect-domain-www-or-non-www-url NATA Gurgaon | Architecture Aptitude Exam Link to comment Share on other sites More sharing options...
dangthuong Posted February 7, 2018 Report Share Posted February 7, 2018 thanks Link to comment Share on other sites More sharing options...
RHCalvin Posted February 8, 2018 Report Share Posted February 8, 2018 You can also use a 301 redirection. 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.