Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: d58e7 - lokakuu 08, 2008, 12:05:23 AP

Otsikko: Is there a standard htaccess file for SMF?
Kirjoitti: d58e7 - lokakuu 08, 2008, 12:05:23 AP
Recently I've been running into a problem whenever I try to install a package on the forum. It ends up taking me to a "page not found" page under the wordpress section of my site, I'm not sure what's causing it but I have a feeling it's the htaccess file in the root directory which is currently configured with

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

I was thinking that putting an htaccess file in the /forum folder could resolve the issue but I'm not sure what I should use as the default smf htaccess code.
Otsikko: Re: Is there a standard htaccess file for SMF?
Kirjoitti: d58e7 - lokakuu 08, 2008, 05:56:37 IP
Lainaus käyttäjältä: d58e7 - lokakuu 08, 2008, 12:05:23 AP
Recently I've been running into a problem whenever I try to install a package on the forum. It ends up taking me to a "page not found" page under the wordpress section of my site, I'm not sure what's causing it but I have a feeling it's the htaccess file in the root directory which is currently configured with

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

I was thinking that putting an htaccess file in the /forum folder could resolve the issue but I'm not sure what I should use as the default smf htaccess code.
If not does anyone know of anything I can try to get around this problem?
Otsikko: Re: Is there a standard htaccess file for SMF?
Kirjoitti: Kindred - lokakuu 10, 2008, 01:04:47 AP
1- don't bump
2- try disabling the .htaccess file (either comment out the lines or change the file to htaccess.txt. If the forum works correctly after that, you know what the problem is...    I am not sure I see the point of that htaccess file anyway.
Otsikko: Re: Is there a standard htaccess file for SMF?
Kirjoitti: Deprecated - lokakuu 10, 2008, 01:27:49 AP
That .htaccess just says that if Apache can't satisfy the request otherwise to send it to your index.php.

SMF doesn't need any .htaccess file. Perhaps your WP put that there.

As Kindred said, the simplest thing to do is to rename it to htaccess.txt and see if things get better or worse. If worse, rename it back.
Otsikko: Re: Is there a standard htaccess file for SMF?
Kirjoitti: d58e7 - lokakuu 12, 2008, 03:00:42 IP
Sorry, but that didn't solve it. It seems like it almost always fails when it does index.php?action=packages;sa=install2;package=pakage_name.zip it loads sa=install fine but once it switches to sa=install2 I get the page not found error.
Otsikko: Re: Is there a standard htaccess file for SMF?
Kirjoitti: Kindred - lokakuu 12, 2008, 05:58:25 IP
do you have any mods installed?

If not, the try re-uploading the files in your source directory...   it sounds like you may have one or two corrupted files
Otsikko: Re: Is there a standard htaccess file for SMF?
Kirjoitti: maskena - syyskuu 16, 2011, 09:26:05 IP
Lainaus käyttäjältä: Kindred - lokakuu 12, 2008, 05:58:25 IP
do you have any mods installed?

If not, the try re-uploading the files in your source directory...   it sounds like you may have one or two corrupted files
this is a good answer. i have same problem. and fix take this answer. thankyou bos