Hi , i bought a script from someone , and installed the script with the installer that came with it , but I need to remove www from the url , i searched the web and found that i need to edit the .htaccess file , but their was no such file in the public_html directory of my domain, i added via cpanel...so i created a .htaccess file and added the following code to it ... RewriteEngine On
Remove www
6
Hi , i bought a script from someone , and installed the script with the installer that came with it , but I need to remove www from the url , i searched the web and found that i need to edit the .htaccess file , but their was no such file in the public_html directory of my domain, i added via cpanel...so i created a .htaccess file and added the following code to it ...
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
But still the url with www, does not redirect to the non www url , same thing happens with internal urls as well ..
Can anyone please help ?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
But still the url with www, does not redirect to the non www url , same thing happens with internal urls as well ..
Can anyone please help ?
- desingshop98
- desingshop98
- [1] reply
- Bruce Hearder
- [ 1 ] Thanks
- desingshop98
- [1] reply
- Bruce Hearder
Next Topics on Trending Feed
-
6