Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Is there a standard htaccess file for SMF?

Aloittaja d58e7, lokakuu 08, 2008, 12:05:23 AP

« edellinen - seuraava »

d58e7

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.

d58e7

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?

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Deprecated

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.

d58e7

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

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

maskena

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

Advertisement: