Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: SilverKnight on February 06, 2009, 07:34:33 PM

Title: I edited the .htaccess and my forum broke, what do i do?
Post by: SilverKnight on February 06, 2009, 07:34:33 PM
I edited the .htaccess and my forum broke, what do i do? i don't have a backup for that file, and anything other than the board index brings up a internal error

500 Internal Server Error

http://www.hypergamer.net/board/index.php
Title: Re: I edited the .htaccess and my forum broke, what do i do?
Post by: ApplianceJunk on February 06, 2009, 07:49:45 PM
What did you edit in the .htaccess file?
Title: Re: I edited the .htaccess and my forum broke, what do i do?
Post by: aldo on February 06, 2009, 08:00:47 PM
It would be best to either undo what you did, or possibly show us the contents of the .htaccess so someone with experience can help debug it possibly ;)
Title: Re: I edited the .htaccess and my forum broke, what do i do?
Post by: SilverKnight on February 06, 2009, 08:09:01 PM
Sorry, basicly, i replaced it with a completely different .htaccess file, i didn't make a backup, if you one of could post your own file, id be very gratefull, im freaking out so bad right now...

I replaced mine with this:

<IfModule mod_php4.c>
    php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
#RewriteBase
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1&nbsp;articlespage=$2 [L]


As you can see, it's not a smf .htaccess file, please help me !  :'(
Title: Re: I edited the .htaccess and my forum broke, what do i do?
Post by: aldo on February 06, 2009, 08:12:39 PM
Well... I don't think SMF has any .htaccess file by default in the root directory of you forum, only in the directories such as Packages and avatars.

So if this is an .htaccess file where you index.php, Settings.php and SSI.php (And other things like the folders of Sources) is located, you can just remove the .htaccess
Title: Re: I edited the .htaccess and my forum broke, what do i do?
Post by: Antechinus on February 06, 2009, 11:12:07 PM
Yep. I run one in case I want to add something to it but at the moment it's blank. You can remove it if you like.
Title: Re: I edited the .htaccess and my forum broke, what do i do?
Post by: SilverKnight on February 07, 2009, 01:50:44 AM
Nevermind, fixed it.