Jump to content

[SOLVED] Odd Forbidden Errors


JaredLinwood

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.