Weird .htaccess issue

Vcize

3 what?!?
Aug 25, 2010
544
8
0
I was attempting to set up a simple 301 redirect from www.iakow.com to www.inallkindsofweather.com

I created an .htaccess file with the below code, and uploaded it to iakow.com

PHP:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^iakow\.com
RewriteRule (.*) http://www.inallkindsofweather.com/$1 [R=301,L]

Now, here's the really weird part. When I uploaded it via filezilla from my home computer, everything went fine. When I go to iakow.com from that computer, it redirects me to inallkindsofweather.com as it should.

However, if I go to iakow.com from another computer, it does not. In fact, when I look with filezilla on that other computer, there is no .htaccess file uploaded to iakow.com. Even weirder, when I do upload it from that computer, it gets immediately deleted as soon as it uploads.

What the heck is going on here?
 


Maybe a stupid answer, but can't be the .htaccess file hidden in filezilla? I know Total Commander does that on some configurations. So maybe it doesn't get deleted after upload, you just don't see it in FZ. As for the other problem, did you try to empty cache on the other computer? Ctrl+F5, some shit like that?
 
That will only redirect iakow.com not www.iakow.com

You may have viewed the www version on the other computer, also could have been a cache issue.

You don't need mod_rewrite to do a simple site redirect.

iakow.com .htaccess
Code:
Redirect 301 / http://www.inallkindsofweather.com/
 
That will only redirect iakow.com not Index of /

You may have viewed the www version on the other computer, also could have been a cache issue.

You don't need mod_rewrite to do a simple site redirect.

iakow.com .htaccess
Code:
Redirect 301 / http://www.inallkindsofweather.com/


this is my guess aswell
 
You don't need mod_rewrite to do a simple site redirect.

iakow.com .htaccess
Code:
Redirect 301 / http://www.inallkindsofweather.com/

Thanks, this worked.

Odd, why do all the online guides have the 3-line mod-rewrite method? Will this one-liner still have any link juice that goes to iakow.com forwarded over to the full inallkindsofweather.com site?