JJBlaha Posted August 24, 2008 Share Posted August 24, 2008 If you go directly to my site the page loads correctly. If you click on a link to my site it says Forbidden You don't have permission to access /index.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. This started without any changes to anything, as far as I can tell. Link to comment https://forums.phpfreaks.com/topic/121055-links-to-my-site-are-403-forbidden/ Share on other sites More sharing options...
DarkWater Posted August 24, 2008 Share Posted August 24, 2008 Is it your own personal server? What OS and server are you running? What does this have to do with PHP? >_> Link to comment https://forums.phpfreaks.com/topic/121055-links-to-my-site-are-403-forbidden/#findComment-624048 Share on other sites More sharing options...
JJBlaha Posted August 24, 2008 Author Share Posted August 24, 2008 It is my own server. Apache/1.3.37 on CENTOS Enterprise 4.6 i686. Oops, wrong forum. Can i get it moved? Link to comment https://forums.phpfreaks.com/topic/121055-links-to-my-site-are-403-forbidden/#findComment-624061 Share on other sites More sharing options...
DarkWater Posted August 24, 2008 Share Posted August 24, 2008 Make sure you don't have something like: Order Deny, Allow Deny from All Or anything like that in your .htaccess or httpd.conf. P.S: If it's in httpd.conf, it would probably be in a <Directory /></Directory> tag to set default directory behavior. Link to comment https://forums.phpfreaks.com/topic/121055-links-to-my-site-are-403-forbidden/#findComment-624064 Share on other sites More sharing options...
JJBlaha Posted August 24, 2008 Author Share Posted August 24, 2008 That would specifically effect LINKS to my website making it not show? A link to domain.com doesnt work, but directly typing in domain.com does work. Link to comment https://forums.phpfreaks.com/topic/121055-links-to-my-site-are-403-forbidden/#findComment-624067 Share on other sites More sharing options...
DarkWater Posted August 24, 2008 Share Posted August 24, 2008 Yeah, that IS kind of weird if you think about it, but check anyway. I'll do some research really quick though. Link to comment https://forums.phpfreaks.com/topic/121055-links-to-my-site-are-403-forbidden/#findComment-624068 Share on other sites More sharing options...
JJBlaha Posted August 24, 2008 Author Share Posted August 24, 2008 I checked the htaccess and somehow these lines were added, and are causing the problem. I removed them and restarted apache and everything works. RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://1subdomain.domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://2subdomain.domain.com/.*$ [NC] ... all the others ... RewriteCond %{HTTP_REFERER} !^http://85subdomain.domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://86subdomain.domain.com/.*$ [NC] RewriteRule .*\.([a-zA-Z0-9\-]+)$ - [F,NC] How could this have been added to EVERY htaccess for every subdomain automatically? Link to comment https://forums.phpfreaks.com/topic/121055-links-to-my-site-are-403-forbidden/#findComment-624074 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.