<?xml version="1.0" encoding="UTF-8"?><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"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Lighttpd Redirect www.domain.com Requests To domain.com Or Vice Versa</title> <atom:link href="http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Franz</title><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-165079</link> <dc:creator>Franz</dc:creator> <pubDate>Wed, 22 Dec 2010 09:40:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-165079</guid> <description>How can I enable this for HTTPS, too? This rewrite rule seems to redirect to HTTP automatically.</description> <content:encoded><![CDATA[<p>How can I enable this for HTTPS, too? This rewrite rule seems to redirect to HTTP automatically.</p> ]]></content:encoded> </item> <item><title>By: Jush Fuskin</title><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-149542</link> <dc:creator>Jush Fuskin</dc:creator> <pubDate>Fri, 17 Jul 2009 16:54:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-149542</guid> <description>Yes I have, here is the exact code I am using.
$HTTP[&quot;host&quot;] =~ &quot;(^&#124;\.)domain\.com$&quot; {
url.redirect = ( &quot;^/(.*)&quot; =&gt; &quot;http://www.domain.com/$1&quot; )
server.document-root = &quot;/var/www/html/domain.com&quot;
server.error-handler-404 = &quot;/404.php&quot;
}</description> <content:encoded><![CDATA[<p>Yes I have, here is the exact code I am using.</p><p>$HTTP["host"] =~ &#8220;(^|\.)domain\.com$&#8221; {<br
/> url.redirect = ( &#8220;^/(.*)&#8221; =&gt; &#8220;http://www.domain.com/$1&#8243; )<br
/> server.document-root = &#8220;/var/www/html/domain.com&#8221;<br
/> server.error-handler-404 = &#8220;/404.php&#8221;<br
/> }</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-149541</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Fri, 17 Jul 2009 16:37:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-149541</guid> <description>Did you add $1 at the end of domain name?</description> <content:encoded><![CDATA[<p>Did you add $1 at the end of domain name?</p> ]]></content:encoded> </item> <item><title>By: Jush Fuskin</title><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-149540</link> <dc:creator>Jush Fuskin</dc:creator> <pubDate>Fri, 17 Jul 2009 15:54:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-149540</guid> <description>I added the directive into my .conf file and it worked but the problem is when I visit a url
for example: when I go to http://mydomain.com it sends me to http://www.mydomain.com. Which is what I want.
But when I go to http://mydomain.com/page1.php Instead of adding a www. infront of the title it just redirects me to the http://www.mydomain.com instead of http://www.mydomain.com/page1.php
How do I fix this?</description> <content:encoded><![CDATA[<p>I added the directive into my .conf file and it worked but the problem is when I visit a url</p><p>for example: when I go to <a
href="http://mydomain.com" rel="nofollow">http://mydomain.com</a> it sends me to <a
href="http://www.mydomain.com" rel="nofollow">http://www.mydomain.com</a>. Which is what I want.</p><p>But when I go to <a
href="http://mydomain.com/page1.php" rel="nofollow">http://mydomain.com/page1.php</a> Instead of adding a www. infront of the title it just redirects me to the <a
href="http://www.mydomain.com" rel="nofollow">http://www.mydomain.com</a> instead of <a
href="http://www.mydomain.com/page1.php" rel="nofollow">http://www.mydomain.com/page1.php</a></p><p>How do I fix this?</p> ]]></content:encoded> </item> <item><title>By: Geoff</title><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-146792</link> <dc:creator>Geoff</dc:creator> <pubDate>Mon, 19 Jan 2009 23:29:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-146792</guid> <description>Does anyone know how I can redirect all non-ww domains to the www version?
I basically need this reversed:
$HTTP[&quot;host&quot;] =~ &quot;^www\.(.*)$&quot; {
url.redirect = ( &quot;^/(.*)&quot; =&gt; &quot;http://%1/$1&quot; )
}
Thanks for any help!</description> <content:encoded><![CDATA[<p>Does anyone know how I can redirect all non-ww domains to the www version?</p><p>I basically need this reversed:</p><p>$HTTP["host"] =~ &#8220;^www\.(.*)$&#8221; {<br
/> url.redirect = ( &#8220;^/(.*)&#8221; =&gt; &#8220;http://%1/$1&#8243; )<br
/> }</p><p>Thanks for any help!</p> ]]></content:encoded> </item> <item><title>By: peter</title><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-146673</link> <dc:creator>peter</dc:creator> <pubDate>Tue, 13 Jan 2009 03:18:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-146673</guid> <description>How can i redirect user based on referer?
Sometime i got bad user i want to redirect them to goway.html? How can i do that? In apache i do something like this:
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} ^http://(.+)\.edublogs\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?fakeyahoo\.com [NC,OR]
RewriteRule ^(.*)$ http://mysitehere/getout.html [R=301,L]</description> <content:encoded><![CDATA[<p>How can i redirect user based on referer?<br
/> Sometime i got bad user i want to redirect them to goway.html? How can i do that? In apache i do something like this:</p><p>RewriteEngine On<br
/> Options +FollowSymlinks<br
/> RewriteCond %{HTTP_REFERER} ^http://(.+)\.edublogs\.org [NC,OR]<br
/> RewriteCond %{HTTP_REFERER} ^http://(www\.)?fakeyahoo\.com [NC,OR]<br
/> RewriteRule ^(.*)$ <a
href="http://mysitehere/getout.html" rel="nofollow">http://mysitehere/getout.html</a> [R=301,L]</p> ]]></content:encoded> </item> <item><title>By: chadrick</title><link>http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-4123</link> <dc:creator>chadrick</dc:creator> <pubDate>Sat, 05 Aug 2006 11:30:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-redirect-www-domaincom-to-domain-com.html#comment-4123</guid> <description>Nice!
But how do I redirect all feed traffic to a feedburner account?
If someone make visit to domain.com/feed/ =&gt; feeds.feedburner.com/myAccount
Cheers,
Chadrick</description> <content:encoded><![CDATA[<p>Nice!</p><p>But how do I redirect all feed traffic to a feedburner account?</p><p>If someone make visit to domain.com/feed/ =&gt; feeds.feedburner.com/myAccount</p><p>Cheers,</p><p>Chadrick</p> ]]></content:encoded> </item> </channel> </rss>
