<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Help Center Topic: Restrict URL redirection to non www domain</title>
		<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection</link>
		<description>Help Center Topic: Restrict URL redirection to non www domain</description>
		<language>en-US</language>
		<pubDate>Mon, 13 Feb 2012 03:00:55 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.labnol.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.labnol.org/forums/rss/topic/how-to-restrict-url-redirection" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-5353</link>
			<pubDate>Sat, 18 Apr 2009 18:39:08 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">5353@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;I can make and edit .htaccess file in public_html/
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-5352</link>
			<pubDate>Sat, 18 Apr 2009 18:14:41 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">5352@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;@jitendra.web: Contact your hosting provider / sysadmin. Some hosts have been known to restrict access to .htaccess files.&#60;/p&#62;
&#60;p&#62;But first, try performing the changes in a step-by-step manner again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-5351</link>
			<pubDate>Sat, 18 Apr 2009 16:18:54 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">5351@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;I tried this but i got this error with www&#60;/p&#62;
&#60;p&#62;Socket Error 10049 {Thd 3840} [socket #161C, 0.0.0.0:4175 to :0]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Amit on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-4301</link>
			<pubDate>Sat, 03 Jan 2009 15:12:08 +0000</pubDate>
			<dc:creator>Amit</dc:creator>
			<guid isPermaLink="false">4301@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;Once you have set the htaccess file, also make sure that you set the non www preference in the Google Webmaster Central tools.&#60;/p&#62;
&#60;p&#62;Google Preferred Domain tools helps restrict the flow of Google Juice to non www pages and hence may result in better Google PageRank in the long run.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-4243</link>
			<pubDate>Tue, 30 Dec 2008 08:55:05 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">4243@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;ya everything is working.&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-4242</link>
			<pubDate>Tue, 30 Dec 2008 08:14:38 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">4242@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;Thanks for your reply.&#60;br /&#62;
Is it enough to put only in .htaccess file in the root directory?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-4238</link>
			<pubDate>Mon, 29 Dec 2008 15:10:07 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">4238@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;Actually, the &#60;a href=&#34;http://no-www.org/faq.php&#34; rel=&#34;nofollow&#34;&#62;www is redundant and deprecated&#60;/a&#62;. However, it's your personal preference. So edit your .htaccess file or look for a section in your cPanel for URL redirection and check there.&#60;/p&#62;
&#60;p&#62;Use the following code in your .htaccess file and make sure you have mod_rewrite ON.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Options +FollowSymLinks
RewriteEngine on   

RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ &#60;a href=&#34;http://www.example.com/$1&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/$1&#60;/a&#62; [R=permanent,L]&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Restrict URL redirection to non www domain"</title>
			<link>http://www.labnol.org/forums/topic/how-to-restrict-url-redirection#post-4230</link>
			<pubDate>Sun, 28 Dec 2008 11:36:05 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">4230@http://www.labnol.org/forums/</guid>
			<description>&#60;p&#62;hello,&#60;/p&#62;
&#60;p&#62;I'm typing my url as &#60;a href=&#34;http://www.domainname.com&#34; rel=&#34;nofollow&#34;&#62;http://www.domainname.com&#60;/a&#62;, but it's redirecting to &#60;a href=&#34;http://domainname.com&#34; rel=&#34;nofollow&#34;&#62;http://domainname.com&#60;/a&#62; automatically. And i have problem with this.&#60;/p&#62;
&#60;p&#62;Please anyone tell me how to avoid this?&#60;/p&#62;
&#60;p&#62;Thanks in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

