<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>FAQforge &#187; Webserver</title> <atom:link href="http://www.faqforge.com/tag/webserver/feed/" rel="self" type="application/rss+xml" /><link>http://www.faqforge.com</link> <description>Just another WordPress weblog</description> <lastBuildDate>Tue, 07 Sep 2010 19:06:55 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Redirect a subdomain with apache mod_rewrite and keep the URL in the address bar</title><link>http://www.faqforge.com/linux/redirect-a-subdomain-with-apache-mod_rewrite-and-keep-the-url-in-the-address-bar/</link> <comments>http://www.faqforge.com/linux/redirect-a-subdomain-with-apache-mod_rewrite-and-keep-the-url-in-the-address-bar/#comments</comments> <pubDate>Fri, 16 Oct 2009 09:11:09 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[ISPConfig 2]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Webserver]]></category> <category><![CDATA[apache]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=234</guid> <description><![CDATA[If you want to redirect a subdomain like sub.domain.tld into a subdirectory of the website and keep the original URL in the browser location bar, you may use the following apache directives. RewriteEngine on RewriteCond %{HTTP_HOST} ^sub.domain.tld [NC] RewriteRule ^/(.*)$ /sub/$1 [L] This rewrite rule can be added into a .htaccess file in the website [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.faqforge.com%2Flinux%2Fredirect-a-subdomain-with-apache-mod_rewrite-and-keep-the-url-in-the-address-bar%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.faqforge.com%2Flinux%2Fredirect-a-subdomain-with-apache-mod_rewrite-and-keep-the-url-in-the-address-bar%2F&amp;source=tweetmeme&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>If you want to redirect a subdomain like sub.domain.tld into a subdirectory of the website and keep the original URL in the browser location bar, you may use the following apache directives.</p><p
class="command">RewriteEngine on<br
/> RewriteCond %{HTTP_HOST}   ^sub.domain.tld [NC]<br
/> RewriteRule   ^/(.*)$ /sub/$1  [L]</p><p>This rewrite rule can be added into a .htaccess file in the website root or inside the vhost file. If you use ISPConfig 2 or 3, you can add this also into the apache directives field in the website settings.</p><p>Replace sub.domain.tld with the subdomain that shall be redirected and /sub/ with the path to the directory were the pages for this subdomain are located.</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/redirect-a-subdomain-with-apache-mod_rewrite-and-keep-the-url-in-the-address-bar/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Redirect domains without www (e.g. domain.com) to www.domain.com with apache rewrite rules</title><link>http://www.faqforge.com/linux/redirect-domains-without-www-e-g-domain-com-to-www-domain-com-with-apache-rewrite-rules/</link> <comments>http://www.faqforge.com/linux/redirect-domains-without-www-e-g-domain-com-to-www-domain-com-with-apache-rewrite-rules/#comments</comments> <pubDate>Wed, 14 Oct 2009 14:56:21 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[ISPConfig 2]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Webserver]]></category> <category><![CDATA[apache]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=236</guid> <description><![CDATA[If all your visitors shall access your website with a URL like www.domain.com and not without www, use the following apache rewrite rule for redirecting them. RewriteEngine On RewriteCond %{HTTP_HOST} !^www RewriteRule (.*) http://www.%{HTTP_HOST}$1 [L,R] The apache rewrite rule can be added in a .htaccess file in the website root directory or if you use [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.faqforge.com%2Flinux%2Fredirect-domains-without-www-e-g-domain-com-to-www-domain-com-with-apache-rewrite-rules%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.faqforge.com%2Flinux%2Fredirect-domains-without-www-e-g-domain-com-to-www-domain-com-with-apache-rewrite-rules%2F&amp;source=tweetmeme&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>If all your visitors shall access your website with a URL like www.domain.com and not without www, use the following apache rewrite rule for redirecting them.</p><p
class="command">RewriteEngine On<br
/> RewriteCond %{HTTP_HOST} !^www<br
/> RewriteRule (.*) http://www.%{HTTP_HOST}$1 [L,R]</p><p>The apache rewrite rule can be added in a .htaccess file in the website root directory or if you use ISPConfig 2 or 3, you can also add the rwrite rule into the apache directives field of the website.</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/redirect-domains-without-www-e-g-domain-com-to-www-domain-com-with-apache-rewrite-rules/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching using disk

Served from: www.faqforge.com @ 2010-09-09 17:36:02 -->