<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="https://acedanger.disqus.com/moved_my_blog_to_new_domain/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 09 Aug 2006 23:21:09 -0000</lastBuildDate><item><title>Re: Moved my blog to new domain</title><link>http://acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657528</link><description>&lt;p&gt;Hi ace,&lt;/p&gt;&lt;p&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 ^(.*)$ http://owened.net/$1 [L,R=301]&lt;br&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;br&gt;RewriteRule ^(.*)$ http://owened.net/index.php/$1 [L]&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;Anyway, just letting you know, and thanks again for your assistance. :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Owen</dc:creator><pubDate>Wed, 09 Aug 2006 23:21:09 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657527</link><description>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">petewood</dc:creator><pubDate>Wed, 02 Aug 2006 12:22:49 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657526</link><description>&lt;p&gt;At present, the rules are:&lt;br&gt;&lt;code&gt;&lt;br&gt;RewriteCond %{HTTP_HOST} !^owened\.net$&lt;br&gt;RewriteRule ^(.*)$ http://owened.net/ [R,L]&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Which from my understanding means, "if the requested URL is not '&lt;a href="http://owened.net" rel="nofollow noopener" target="_blank" title="owened.net"&gt;owened.net&lt;/a&gt;', then redirect the browser to '&lt;a href="http://owened.net" rel="nofollow noopener" target="_blank" title="owened.net"&gt;owened.net&lt;/a&gt;' -- 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 noopener" target="_blank" title="http://oblong.gotdns.org/windowsxp-to-ubuntu-606-a-guide/"&gt;http://oblong.gotdns.org/wi...&lt;/a&gt;, they would simply be redirected to just &lt;a href="http://owened.net" rel="nofollow noopener" target="_blank" title="owened.net"&gt;owened.net&lt;/a&gt;.&lt;/p&gt;&lt;p&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 ^(.*)$ http://owened.net/$1 [R=301]&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Which says "if the requested URL is &lt;a href="http://oblong.gotdns.org" rel="nofollow noopener" target="_blank" title="oblong.gotdns.org"&gt;oblong.gotdns.org&lt;/a&gt; or &lt;a href="http://www.owened.net" rel="nofollow noopener" target="_blank" title="www.owened.net"&gt;www.owened.net&lt;/a&gt;, redirect the browser to &lt;a href="http://owened.net" rel="nofollow noopener" target="_blank" title="owened.net"&gt;owened.net&lt;/a&gt;" -- 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;/p&gt;&lt;p&gt;So, I've got no idea why it isnt working. :(&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Owen</dc:creator><pubDate>Mon, 31 Jul 2006 18:04:15 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657525</link><description>&lt;p&gt;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;/p&gt;&lt;p&gt;RewriteEngine On&lt;/p&gt;&lt;p&gt;RewriteCond %{HTTP_HOST} ^blog\.petewood\.us&lt;br&gt;RewriteRule ^(.*)$ &lt;a href="http://www.acedanger.com/$1" rel="nofollow noopener" target="_blank" title="http://www.acedanger.com/$1"&gt;http://www.acedanger.com/$1&lt;/a&gt; [r=301]&lt;/p&gt;&lt;p&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?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">petewood</dc:creator><pubDate>Mon, 31 Jul 2006 08:02:50 -0000</pubDate></item><item><title>Re: Moved my blog to new domain</title><link>http://acedanger.com/2006/07/21/moved-my-blog-to-new-domain/#comment-1657524</link><description>&lt;p&gt;Hi ace,&lt;/p&gt;&lt;p&gt;I am just wondering if you can share with me your entire .htaccess file and the corresponding httpd.conf settings?&lt;/p&gt;&lt;p&gt;I recently moved my site from &lt;a href="http://oblong.gotdns.org" rel="nofollow noopener" target="_blank" title="http://oblong.gotdns.org"&gt;http://oblong.gotdns.org&lt;/a&gt; (a crappy DynDNS account) to &lt;a href="http://owened.net" rel="nofollow noopener" target="_blank" title="http://owened.net"&gt;http://owened.net&lt;/a&gt; -- my .htaccess file looks like &lt;a href="http://owened.net/htaccess.txt" rel="nofollow noopener" target="_blank" title="http://owened.net/htaccess.txt"&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;/p&gt;&lt;p&gt;Thank-you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Owen</dc:creator><pubDate>Mon, 31 Jul 2006 07:38:05 -0000</pubDate></item></channel></rss>