<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>ace's blog - Latest Comments in Moved my blog to new domain</title><link>http://acedanger.disqus.com/</link><description>personal blog, some techy stuff - sometimes</description><language>en</language><lastBuildDate>Thu, 10 Aug 2006 03:21:09 -0000</lastBuildDate><item><title>Re: Moved my blog to new domain</title><link>http://www.acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657528</link><description>Hi ace,&lt;br&gt;&lt;br&gt;It's been a while, but I finally got things working for me. Following are the relevant lines from my .htaccess:&lt;br&gt;&lt;code&gt;&lt;br&gt;RewriteEngine On&lt;br&gt;RewriteBase /&lt;br&gt;RewriteCond %{HTTP_HOST} ^oblong\.gotdns.org$ [OR]&lt;br&gt;RewriteCond %{HTTP_HOST} ^www\.owened.net$ [NC]&lt;br&gt;RewriteRule ^(.*)$ &lt;a href="http://owened.net/%241" rel="nofollow"&gt;http://owened.net/$1&lt;/a&gt; [L,R=301]&lt;br&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;br&gt;RewriteRule ^(.*)$ &lt;a href="http://owened.net/index.php/%241" rel="nofollow"&gt;http://owened.net/index.php/$1&lt;/a&gt; [L]&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;Some of them you will recognise from Wordpress' rules. The three important ones are lines 3, 4 and 8 -- a mate of mine helped me out, and we figured this.&lt;br&gt;&lt;br&gt;Anyway, just letting you know, and thanks again for your assistance. :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Owen</dc:creator><pubDate>Thu, 10 Aug 2006 03:21:09 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://www.acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657527</link><description>Owen, Try commenting out the second Rewrite Cond (RewriteCond %{HTTP_HOST} ^www\.owened\.net$).  That appears to be the only thing that is different from my file and yours.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">petewood</dc:creator><pubDate>Wed, 02 Aug 2006 16:22:49 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://www.acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657526</link><description>At present, the rules are:&lt;br&gt;&lt;code&gt;&lt;br&gt;RewriteCond %{HTTP_HOST} !^owened\.net$&lt;br&gt;RewriteRule ^(.*)$ &lt;a href="http://owened.net/" rel="nofollow"&gt;http://owened.net/&lt;/a&gt; [R,L]&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;Which from my understanding means, "if the requested URL is not 'owened.net', then redirect the browser to 'owened.net' -- which works OK, except if for example someone were to browse to a page like &lt;a href="http://oblong.gotdns.org/windowsxp-to-ubuntu-606-a-guide/" rel="nofollow"&gt;http://oblong.gotdns.org/windowsxp-to-ubuntu-60...&lt;/a&gt;, they would simply be redirected to just &lt;a href="http://owened.net" rel="nofollow"&gt;owened.net&lt;/a&gt;.&lt;br&gt;&lt;br&gt;So now, my .htaccess looks like this:&lt;br&gt;&lt;code&gt;&lt;br&gt;RewriteCond %{HTTP_HOST} ^oblong\.gotdns\.org$&lt;br&gt;RewriteCond %{HTTP_HOST} ^www\.owened\.net$&lt;br&gt;RewriteRule ^(.*)$ &lt;a href="http://owened.net/%241" rel="nofollow"&gt;http://owened.net/$1&lt;/a&gt; [R=301]&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;Which says "if the requested URL is &lt;a href="http://oblong.gotdns.org" rel="nofollow"&gt;oblong.gotdns.org&lt;/a&gt; or &lt;a href="http://www.owened.net" rel="nofollow"&gt;www.owened.net&lt;/a&gt;, redirect the browser to owened.net" -- I think. The $ at the end of the RewriteCond lines means "remember what goes here", and the $1 at the end of the RewriteRule means "put what you remembered here", as far as I know...&lt;br&gt;&lt;br&gt;So, I've got no idea why it isnt working. :(</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Owen</dc:creator><pubDate>Mon, 31 Jul 2006 22:04:15 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://www.acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657525</link><description>Owen,&lt;br&gt;I found the .htaccess file I have online.  I must've looked at about 30 or 40 results of a google search until I figured out what was wrong with my htaccess file.  Below is my entire .htaccess file on my old subdomain:&lt;br&gt;&lt;br&gt;RewriteEngine On&lt;br&gt;&lt;br&gt;RewriteCond %{HTTP_HOST} ^blog\.petewood\.us&lt;br&gt;RewriteRule ^(.*)$ &lt;a href="http://www.acedanger.com/%241" rel="nofollow"&gt;http://www.acedanger.com/$1&lt;/a&gt; [r=301]&lt;br&gt;&lt;br&gt;Beyond showing you what I have, I am afraid that I can't be of any help figuring out why your file is not working just by looking at it.  What is happening when you uncomment the commented lines?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">petewood</dc:creator><pubDate>Mon, 31 Jul 2006 12:02:50 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://www.acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657524</link><description>Hi ace,&lt;br&gt;&lt;br&gt;I am just wondering if you can share with me your entire .htaccess file and the corresponding httpd.conf settings? &lt;br&gt;&lt;br&gt;I recently moved my site from &lt;a href="http://oblong.gotdns.org" rel="nofollow"&gt;http://oblong.gotdns.org&lt;/a&gt; (a crappy DynDNS account) to &lt;a href="http://owened.net" rel="nofollow"&gt;http://owened.net&lt;/a&gt; -- my .htaccess file looks like &lt;a href="http://owened.net/htaccess.txt" rel="nofollow"&gt;so&lt;/a&gt; -- do you have any idea why its not working, the way it is? (save for the commented-out-until-its-working-properly lines)&lt;br&gt;&lt;br&gt;Thank-you.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Owen</dc:creator><pubDate>Mon, 31 Jul 2006 11:38:05 -0000</pubDate></item></channel></rss>