01-30-2015, 06:11 AM | #1 |
Registered User
Join Date: Nov 2014
Location: Hyderabad
Posts: 30
|
How to redirect www to non www
please help me in redirecting www to non www
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
01-30-2015, 06:14 AM | #2 |
Registered User
Join Date: Nov 2014
Location: Hyderabad
Posts: 30
|
my site : kretyanews.com
i tried "h t-a c c e s s c o d e" and also other "p l u g i n s" but got no solution
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
02-06-2015, 03:35 AM | #3 |
Registered User
Join Date: Jul 2014
Location: India
Posts: 47
|
# Redirect www urls to non-www
RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.yoursite\.com [NC] RewriteRule (.*) http://yoursite.com/$1 [R=301,L] Alternatively you can use : # Redirect www urls to non-www RewriteEngine on RewriteCond %{HTTP_HOST} !^example\.com RewriteRule (.*) http://example.com/$1 [R=301,L] I think it will help you.
__________________
Great Services for You:- To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
02-11-2015, 04:31 AM | #4 |
Registered User
Join Date: Feb 2015
Posts: 126
|
You do so from cpanel of the site.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
02-11-2015, 04:55 AM | #5 |
Registered User
Join Date: Jan 2015
Posts: 64
|
Here the code
# Redirect non-www urls to www RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule (.*) http://www.example.com/$1 [R=301,L]
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
02-12-2015, 04:34 AM | #6 |
Registered User
Join Date: Oct 2014
Posts: 251
|
If you have windows hosting then you can do it from webconfig file.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
03-13-2015, 10:28 PM | #7 |
Registered User
Join Date: Jul 2014
Posts: 307
|
Code to redirect www to non-www:
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC] RewriteRule ^(.*) http://%1/$1 [R=301,NE,L]
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
03-14-2015, 09:50 AM | #8 |
Registered User
Join Date: Mar 2015
Posts: 39
|
please help me in redirecting www to non www.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
03-15-2015, 10:59 AM | #9 |
Registered User
Join Date: Nov 2014
Location: Hyderabad
Posts: 30
|
Hey albert ,
I found the solution for it. , Few modifications in DNS settings solved my prob.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
05-07-2015, 02:04 AM | #10 |
Registered User
Join Date: May 2015
Posts: 32
|
You can do url redirection with this code -
#Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] This code will surely helpful for url redirection.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
05-14-2015, 02:12 AM | #11 |
Registered User
Join Date: Apr 2015
Posts: 12
|
If you have Google webmaster tool than use it for redirecting your site www to without www. In setting you can see the manny option select proffered domain select your domain name without www and save the changes.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about 301 Permanent Redirect | JACKADEN | Search Engine Optimization | 7 | 11-28-2019 01:07 AM |
301 redirect is better or 302 redirect . | rummy26 | Search Engine Optimization | 13 | 12-17-2014 05:14 AM |
Redirect the website and want to know about backlinks | sahithya | Search Engine Optimization | 0 | 11-17-2014 12:06 AM |
301 redirect - the right way | sinicline | 2 | 09-27-2013 11:32 PM | |
HTTP 302 redirect and WAP? | jamesranatte | General Discussion | 2 | 01-24-2012 09:04 PM |