JaredLinwood Posted June 24, 2007 Share Posted June 24, 2007 Not sure if this is PHP or .htaccess errors but for some odd reasons certain rewritten URLs on my forum work, and others don't. They all work for me, but for some people they have reported "Forbidden" server errors. I'm stumped at what it could be, so I was hoping you guys could help. Example of a working URL Example of a "Forbidden" URL I have attached my .htaccess file's contents below in case it is being caused by it: IndexIgnore .htaccess Options +MultiViews DirectoryIndex board? php_flag session.use_trans_sid off RewriteEngine ON # Topics RewriteRule ^topic/([^-]*)/$ board.php?showtopic=$1&%{query_string} RewriteRule ^topic/([^-]*)/newest/$ board.php?showtopic=$1&view=getnewpost%{query_string} RewriteRule ^topic/([^-]*)$ board.php?showtopic=$1&%{query_string} RewriteRule ^topic/([^-]*)/newest$ board.php?showtopic=$1&view=getnewpost%{query_string} # Forums RewriteRule ^forum/([^-]*)/$ board.php?showforum=$1&%{query_string} RewriteRule ^forum/([^-]*)$ board.php?showforum=$1&%{query_string} # Users RewriteRule ^user/([^-]*)/$ board.php?showuser=$1&%{query_string} RewriteRule ^user/([^-]*)$ board.php?showuser=$1&%{query_string} # Categories RewriteRule ^category/([^-]*)/$ board.php?c=$1&%{query_string} RewriteRule ^category/([^-]*)$ board.php?c=$1&%{query_string} # Other Stuff RewriteRule ^controls(.*)$ board.php?act=UserCP&CODE=00&%{query_string} RewriteRule ^messages(.*)$ board.php?act=Msg&CODE=01&%{query_string} RewriteRule ^register(.*)$ board.php?act=Reg&CODE=00&%{query_string} RewriteRule ^revalidate(.*)$ board.php?act=Reg&CODE=reval{query_string} RewriteRule ^login(.*)$ board.php?act=Login&CODE=00&%{query_string} RewriteRule ^help(.*)$ board.php?act=Help&%{query_string} RewriteRule ^search(.*)$ board.php?act=Search&%{query_string} RewriteRule ^members(.*)$ board.php?act=Members&%{query_string} RewriteRule ^calendar(.*)$ board.php?act=Calendar&%{query_string} RewriteRule ^logout(.*)$ board?act=Login&CODE=03&%{query_string} # Might as well deny access to certain things whilst we're at it # not essential, but just helps fix people who carelessly leave .txt # and junk around. You get a real 403, not IPB's silly 403 page. # # Comment next line to disable. #RewriteRule archive_in/|archive_out/|sources/|lang/|modules/|Skin/|ssi_templates/ board? [F] Any help would be greatly appreciated! Thanks, Jared. Link to comment https://forums.phpfreaks.com/topic/56957-solved-odd-forbidden-errors/ Share on other sites More sharing options...
JaredLinwood Posted June 24, 2007 Author Share Posted June 24, 2007 Nobody? I really need the help :'(. Link to comment https://forums.phpfreaks.com/topic/56957-solved-odd-forbidden-errors/#findComment-281604 Share on other sites More sharing options...
teng84 Posted June 24, 2007 Share Posted June 24, 2007 sometimes you they access the folder without defining the page say x.php if the folder dont have the index that will basically happen Link to comment https://forums.phpfreaks.com/topic/56957-solved-odd-forbidden-errors/#findComment-281614 Share on other sites More sharing options...
JaredLinwood Posted June 25, 2007 Author Share Posted June 25, 2007 Thanks, seems I have fixed the problem, some problem URLs apparently, thanks anyway. Link to comment https://forums.phpfreaks.com/topic/56957-solved-odd-forbidden-errors/#findComment-281684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.