Do they belong to you? Claim these comments.
Owen
Is this you? Claim Profile »
2 years ago
in Moved my blog to new domain on ace's blog
Hi ace,
It's been a while, but I finally got things working for me. Following are the relevant lines from my .htaccess:
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.
Anyway, just letting you know, and thanks again for your assistance. :-)
It's been a while, but I finally got things working for me. Following are the relevant lines from my .htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^oblong\.gotdns.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.owened.net$ [NC]
RewriteRule ^(.*)$ http://owened.net/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://owened.net/index.php/$1 [L]
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.
Anyway, just letting you know, and thanks again for your assistance. :-)
2 years ago
in Moved my blog to new domain on ace's blog
At present, the rules are:
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 http://oblong.gotdns.org/windowsxp-to-ubuntu-60..., they would simply be redirected to just owened.net.
So now, my .htaccess looks like this:
Which says "if the requested URL is oblong.gotdns.org or www.owened.net, 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...
So, I've got no idea why it isnt working. :(
RewriteCond %{HTTP_HOST} !^owened\.net$
RewriteRule ^(.*)$ http://owened.net/ [R,L]
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 http://oblong.gotdns.org/windowsxp-to-ubuntu-60..., they would simply be redirected to just owened.net.
So now, my .htaccess looks like this:
RewriteCond %{HTTP_HOST} ^oblong\.gotdns\.org$
RewriteCond %{HTTP_HOST} ^www\.owened\.net$
RewriteRule ^(.*)$ http://owened.net/$1 [R=301]
Which says "if the requested URL is oblong.gotdns.org or www.owened.net, 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...
So, I've got no idea why it isnt working. :(
2 years ago
in Moved my blog to new domain on ace's blog
Hi ace,
I am just wondering if you can share with me your entire .htaccess file and the corresponding httpd.conf settings?
I recently moved my site from http://oblong.gotdns.org (a crappy DynDNS account) to http://owened.net -- my .htaccess file looks like so -- do you have any idea why its not working, the way it is? (save for the commented-out-until-its-working-properly lines)
Thank-you.
I am just wondering if you can share with me your entire .htaccess file and the corresponding httpd.conf settings?
I recently moved my site from http://oblong.gotdns.org (a crappy DynDNS account) to http://owened.net -- my .htaccess file looks like so -- do you have any idea why its not working, the way it is? (save for the commented-out-until-its-working-properly lines)
Thank-you.