Webmastersite.net
Register Log In

To access via non -www

Title To access via non -www
Description Does not rewite without www. after regenerating.
Message Text I am able to redirect using following code in htaccess RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?example\.com)$ [NC] RewriteRule .? http://%1%{REQUEST_URI} [R=301,L] I have changed the URL in system configuration without www. Also I replaced all instances of www.example.com with example.com in database. But When I regenerate, all rewrites in the directory URLs come back to www.example.com Am I missing a step somewhere or is there any code in htaccess which is to be removed?
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership sharma22
Views 198 views. Averaging 0 views per day.
Similar Topics
Submission Date Apr 11, 2011 - 12:28 AM