Skylark95 Posted May 5, 2011 Share Posted May 5, 2011 Simply put I am having issues linking this sig to my signature here on the forums. It keeps giving me a 403 error.Anyone know enough about .htaccess files to tell me what I am doing wrong?This is the .htaccess for the root folder for the websiteErrorDocument 404 /notfound.htmlErrorDocument 403 /forbidden.htmlOptions -IndexesThis is the .htaccess file for the sigs directoryOptions +IndexesIndexIgnore *.htaccessRewriteEngine onRewriteRule ^.*$ -I can load a directory listing just fine but can't view the image.Any help would be great. Link to comment Share on other sites More sharing options...
spawn622 Posted May 5, 2011 Share Posted May 5, 2011 I get a 404 File Not Found when I try to view the sig just by clicking on it. Not sure what's up honestly. Link to comment Share on other sites More sharing options...
Skylark95 Posted May 5, 2011 Author Share Posted May 5, 2011 I've been debating switching web hosts if I can't get the problem resolved because that is not the only problem I am having with them. Link to comment Share on other sites More sharing options...
spawn622 Posted May 5, 2011 Share Posted May 5, 2011 I'd log in via FTP and just double check that the file is still there. Also make sure the file name is exact (i.e. capitalization, etc.) Link to comment Share on other sites More sharing options...
Skylark95 Posted May 5, 2011 Author Share Posted May 5, 2011 I'm on my phone right now but once I get to my pc I will check. Link to comment Share on other sites More sharing options...
brim4brim Posted May 5, 2011 Share Posted May 5, 2011 check the file name for unusual characters and ensure that the file extension matches the file type.Also verify permissions. Link to comment Share on other sites More sharing options...
Dateranoth Posted May 5, 2011 Share Posted May 5, 2011 Even the directory listing is showing no file for me. Link to comment Share on other sites More sharing options...
vectordream Posted May 5, 2011 Share Posted May 5, 2011 I know a little about .htaccess. I have used it a little to secure my wordpress blogs. I don't fully understand everything though.I do know that Options -Indexes disables directory browsing. That could be it. I have read that you can add it for security reasons. My hosting companies server configuration won't even allow me to put that in. I did some testing and if I put in Options -Indexes it does not take and gets commented out in my file and tells me that I cannot overwrite that function. To comment something out in .htaccess files just put a # in front of it with no spaces before or after. I learned this from tip #10 from this website:http://www.smashingm...ecurity-tweaks/IndexIgnore *.htaccess is not it because that is just saying hide the .htaccess file when listing the directory.That brings it down to possibly being this code:RewriteEngine onRewriteRule ^.*$ -I don't think you need that at all. It looks incomplete from all the ones I have reviewed. I say backup the .htaccess files and do some tests. I would removed the rewrite command above save it and see what happens. If that does not do it put it back in and then remove Options -Indexes from the other one, save and see what happens. Add it back in if no changes occured. At least you could pinpoint it down to the one that could be causing it. Just some suggestions. I have some experience with this but I am no expert with .htaccess. There are so many commands you could put in there it is insane. You should see one of my files it has alot in it. I just added and deleted things to experiment with mine and I never permanently broke my site. I did alot of google searches messing with this stuff. Link to comment Share on other sites More sharing options...
Skylark95 Posted May 6, 2011 Author Share Posted May 6, 2011 I checked, the file is there... Link to comment Share on other sites More sharing options...
Skylark95 Posted May 6, 2011 Author Share Posted May 6, 2011 I believe I got it working. Can someone confirm that they can access the directory and the image? Link to comment Share on other sites More sharing options...
Kevnvek Posted May 6, 2011 Share Posted May 6, 2011 I'm not sure if the index is working or not, as it just takes me to a list with only "Parent Directory" in it and no items, but the other link to the image says "403 ForbiddenYou do not have access to that part of the server." Link to comment Share on other sites More sharing options...
Dateranoth Posted May 6, 2011 Share Posted May 6, 2011 It's hard to troubleshoot without really seeing everything, but here is an excellent guide on htaccess. It should let you know if it's a problem with it or not.http://corz.org/serv/tricks/htaccess2.php Link to comment Share on other sites More sharing options...
Skylark95 Posted May 6, 2011 Author Share Posted May 6, 2011 I will be sure to try that. Link to comment Share on other sites More sharing options...
brim4brim Posted May 7, 2011 Share Posted May 7, 2011 Looks like a permission thing. Getting 403 forbidden. Can you set permissions on the file?I can view the directory listing but it displays nothing. Link to comment Share on other sites More sharing options...
Skylark95 Posted May 7, 2011 Author Share Posted May 7, 2011 I am noticing for me that if I link to it, the image does not show, but if I go to it directly without the link then it works... sometimes that is... Link to comment Share on other sites More sharing options...
brim4brim Posted May 7, 2011 Share Posted May 7, 2011 I am noticing for me that if I link to it, the image does not show, but if I go to it directly without the link then it works... sometimes that is...Could be intelligent browser caching that notices its the same file request from the same IP/Domain as when you log into admin backend.I've had something similar happen to me when I was webhosting a college project. It did turn out to be permissions for me in the end so I still think its that even if it might be driving ya mad Can you apply 777 permissions to it and post so we can check it and then scale back the permissions until you get to the relevant level? (I usually deal with windows permissions so don't know what the actual level should be off the top of my head). Link to comment Share on other sites More sharing options...
Skylark95 Posted May 7, 2011 Author Share Posted May 7, 2011 Could be intelligent browser caching that notices its the same file request from the same IP/Domain as when you log into admin backend.I've had something similar happen to me when I was webhosting a college project. It did turn out to be permissions for me in the end so I still think its that even if it might be driving ya mad Can you apply 777 permissions to it and post so we can check it and then scale back the permissions until you get to the relevant level? (I usually deal with windows permissions so don't know what the actual level should be off the top of my head).I have to head into work, but I will be sure to try that.[edit] I put 777 on the image and the directory. Still doesn't appear to work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.