Jump to content

Recommended Posts

Posted

 

Alright I've got a headscratcher for all u gurus out there: I successfully created a subdomain and moved my MT blog over to it (all of it cgi files and everything). So I edited all the files necessary to make MT know, "hey I've been moved let me update myself" right?

 

Ok, the problem is if you visit the subdomain of my blog blog.zoblue.com you get the site with the stylesheets but no images. If you access the folder directly www.zoblue.com/blog you get the blog as it should be. If you hit the back button the images will show up since they're cached by visiting the folder; if you clear your cache the images are gone again.

 

I wanted my blog on a subdomain so I can track it's awstats separately from the rest of my site. But I'm concerned the images are not showing for the subdomain even tho the images folder is in there and not on the root. I even turned off Hotlink Protection and waited couple hours... no change.

 

Basically what I did was this: created a subdomain in CPanel; logged into MT and changed the "Weblog Config" to point to the subdomain; rebuild MT; logged into WS_FTP and deleted the blog folder; made a backup copy of my mt folder; renamed the original mt folder to blog; edited the mt.cfg file to point to the subdomain; viola! or so I thought! Everything is moved over but the images refuse to show up! Mad!!!

 

I spent all day yesterday on the MT forums and a member there (shelley) tried everything on earth to get the images to show. I even went so far as to allow her FTP access to try somethings and it still didn't help. (see here: www.movabletype.org/support/index.php?act=ST&f=7&t=39261&st=0)

 

Please tell me someone out there has some kind of idea what I did wrong? I did drop a help ticket yesterday and was told it was probably a setting in MT. I want to get feedback from some of you gurus out there before I submit a second help desk ticket. Now that I've tried everything via MT I'm thinking it's something else. I'm close to breaking down to tears over here <_<.

 

thanks,

!!blue

Posted

I know I'm not crazy (right?)... here's a comparison...

 

the one on the right is blog.zoblue.com and the one on the left is zoblue.com/blog

 

 

post-21-1081957867_thumb.jpg

Posted (edited)

Do you have hotlinking protection enabled for those directories and maybe missing allowing blog.zoblue.com?

 

Actually, I see you do have it enabled... "I had to add the subdomain to the Hotlink Protection & htaccess" It seems like that's where your problem is. I would double check your .htaccess settings.

Edited by TCH-MikeJ
Posted

Well, I did turn it off yesterday for a couple hours and it didn't help... once I turned back on, the text box had my blog subdomain listed in there and all I did was add the TCH Forums <_< to allow the sig & all that to show up....

 

here's the htaccess file as it is now (all the rewrite stuff written in by CPanel's Hotlink Protection feature:

>ErrorDocument 400 http://www.zoblue.com/400.shtml
ErrorDocument 401 http://www.zoblue.com/401.shtml
ErrorDocument 403 http://www.zoblue.com/403.shtml
ErrorDocument 404 http://www.zoblue.com/404.shtml
ErrorDocument 408 http://www.zoblue.com/408.shtml
ErrorDocument 500 http://www.zoblue.com/500.shtml
ErrorDocument 501 http://www.zoblue.com/501.shtml
ErrorDocument 502 http://www.zoblue.com/502.shtml
ErrorDocument 503 http://www.zoblue.com/503.shtml

Options -Indexes
Options +Includes


AddType text/html .shtml
AddHandler server-parsed .shtml

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://blog.zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://blog.zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://control.zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://control.zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://securemail.zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://securemail.zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blog.zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blog.zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.control.zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.control.zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.securemail.zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.securemail.zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://zoblue.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://zoblue.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.totalchoicehosting.com/forums/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.totalchoicehosting.com/forums$      [NC]
RewriteCond %{HTTP_REFERER} !^http://totalchoicehosting.com/forums/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://totalchoicehosting.com/forums$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf)$ - [F,NC]

Posted

 

Ok, ok, I'm now going to turn of Hotlinking Protection... Mad!!!

 

How long before I can see any effects? By the looks of it, the .htaccess file *does* have my subdomain added (in various ways :lol: ) so I thought it was correct but I guess not...

 

I'm so confused <_<

 

Posted

I do not add my sub domains,

just the http:domain and http:www.domain

 

Sometimes hotlinking stops all aimages and I have to turn it off for a while, til the images work again.

the I turn it back on and I keep the list of authorized domains in a text file

as some of them get lost when holtlink is dissabled.

Posted

Now, before everyone noodle whips me :lol: the problem *was* the .htaccess file. But not the one in the root... oh no! The secret one hidden in the blog folder itself (public_html/blog/.htaccess)... Yes the one that I never thought to look for cuz I didn't know it existed. <_<

 

ARRRHRRHRHGHGHGHGHGH!!! Jeez, all this time going back & forth thinking it's like this esoteric problem and it's a little .htaccess file that wasn't being turned off. LOL LOL LOL

 

So now I went in and deleted ALL the .htaccess files except for the one on the root (public_html).

 

Let the noodle whiping commence!!! :)

 

later,

!!blue

Posted
Let the noodle whiping commence!!! :lol:

Well, since you asked for it...... :)

 

:)

 

Sometimes the simplest things are the most difficult to find and sort out. <_<

Posted

I'm glad you solved the problem. :)

 

It's always hard to find a problem that you didn't (intentionally at least) create yourself. You have only MT to blame! <_<

 

On a side note, you have MUCH more courage than I possess. I can't even imagine trying to move MT once it is set up. I thought about moving mine, then realized the number of possible traps exceeded my patience threshold.

 

Congrats. :lol:

 

...dave

Posted

Thanks to all for steering me down the right path. Once I get an idea in my head, it seems to take over my life! :P

 

love to all!!! :hug:

 

as for moving the site, i thought i knew what I was doing until I ran into problems. I had researched it enough. but at least I know where to run to when I have problems cuz ....

 

 

Rock Sign

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...