HTACCESS

Started by dania, December 27, 2007, 04:21:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dania

Hi,

All recovered from Christmas are we?

;D

My techy problem:

I had a situ where I made an htaccess file and sent it up, next thing all my images vanished, as you can see I know nothing of why this happened but good came out of it because it made me realise my other host was just a useless piece of ding dong on support.

So, why did the images vanish, why when I removed the offending file did my images not return?

What was in the file:

I started with
deny from
added ips
<limit>
</Files>
I put it in public_html (root) I think thats the root.
Thats all I had in the file.
Thanks
:)
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him, should not perish, but have everlasting life.

Jason

I don't see a connection between what you put above and image file loading.  Removing the htaccess file will remove any restrictions it has so that doesn't make sense either.

Are you able to provide an example page?

Also, where is the rest of the "limit" tag and the first part of the "files" tag -- the syntax in what you posted above looks incomplete/incorrect.

Here's a pretty good reference link:  http://www.javascriptkit.com/howto/htaccess.shtml

dania

Hi Jason,

Thanks very much for your reply especially as its holidays.

The link is to my wordpress Bichon Frisé site and the missing image. It one directory of images I have yet to bring over to you:
http://jungaling.com/whitefluffs/

I thought later perhaps its a chod thing so I changed it to 755 but they changed it back to 644.

I know for a fact my Malaysia site images will all be missing but I have sent some up to yours this afternoon but its a huge task as I will have to go and renew all image links but well worth it now I have more or less moved everything.

I have no idea why the images did not return I should have done a test site first with the HTACCESS. I got that from putting the word into Google lol

I'm sure when I have time your link will be very helpful.

Thanks again Jason...happy to leave the other host behind finally.
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him, should not perish, but have everlasting life.

Jason

The htaccess file on my server should not impact your images hosted externally.  Is it possible you disabled hotlinking with your other host?

Mark

#4
I checked out your website and noticed that the image on the post "The Bichon Frisé Standard" is producing a "500 Internal Server Error" when you go directly too the link: http://www.katesdreamweavercentre.com/bichonfrise/bichonfrisewp.jpg (I'm assuming that's your externally hosted image right?).

dania

Hi Possum and Jason,

It is of course imaterial now but no as far as I know there was never any hotlinking setup by myself and yes, there is since that offending file been a 500 internal error. I now dare not use an htaccess for obvious reasons unless host puts it there by themselves. No Jason it was'nt nothing here that caused the error.

Possum, I had taken some hosting from Jason and installed the scripts I wanted, then because I was getting 1000MB of image space I elsewhere decided to put all my images on the 1000 MB of space, well, I was paying for it lol There has not been a problem on jungaling.com as long as the images are at Jason hosting. All errors have been on katesdreamweavercentre.com since the htaccess file. But why, and why not bring images back after I removed the file?
Strange to say the least.

Thanks for your time both of you

:)
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him, should not perish, but have everlasting life.

Jason

To me, that file doesn't exist there or it has incorrect permissions.


akheir

Are you sure that you put the .htaccess file on jungaling site and not the www.katesdreamweavercentre.com site?

You may have disabled the image serving site by mistake. :)

Just a thought - don't get mad at me. ;)

Plan
Promote
Profit

Kheir Consulting
http://www.kheirconsulting.com

dania

Hi,

After arguing with the host and deciding to move away from them in favor of Jasons, whilst I was removing my files from file manager I too thought of chmod. I read first they can be 755 but the host may have 644 so I changed image (thats img not foldert) to 755 but when I looked 10 minutes later they were changed back by the host to 644.

I can't remember offhand if I put the same .htaccess in Jason's file manager but I know for sure one went into the other host root. All the images were there at the time of the 500 error because I only moved them yesterday. I could see them in file manager by 'show file' but click the ext to get the address gave me the 500...its a mystery but one I need to solve becuase htaccess is a good thing to have.

What I am going to do this morning is look to se if the same file is in the root at Jasons.

Thanks for all the help with this mystery.

:)
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him, should not perish, but have everlasting life.

Jason

Try renaming or removing the htaccess file on your other host and see if your images hosted there start showing again there.  That would have nothing to do with your account with me if your images don't show up on your other site hosted there.

dania

Its ok Jason,

I have nothing there at all now I emptied it all yesterday and today, the account cancel forrm went out today also. People are now coming more to jungaling.com rather than katesdreamweavercentre.com.

But I still need to learn about htaaccess so your link will be great and thanks.

So thats it, al;l has now been moved over apart from some files I have still to upload from desktop at my leisure. Its finding all the misses now in Wild in Malaysia and replacing.

:)



For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him, should not perish, but have everlasting life.