MyBB Community Forums

Full Version: Getting error: "forumdisplay.php was not found on this server"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have successfully set up a new install of MyBB 1.8.4 here: http://leadershipformen.com/forum/

I have one "Category" called "Leadership For Men" and I have one "Forum" called "Public".

More specifically, from within the Admin Control Panel, I renamed the installation default "My Category" to "Leadership For Men" and I renamed the default "My Forum" to "Public".

When I try to click into my "Public" forum, I get the following error message:

Not Found

The requested URL /LeadershipForMen/forum/forumdisplay.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at leadershipformen.com Port 80


FTP'ing into my leadershipformen.com/forum directory with FileZilla , I can see that forumdisplay.php does in fact exist within the root directory and that it is a 40,364 file size.

Within my root directory, I created a sub-directory named "forum" and that is where I uploaded all the MyBB files to.

So it appears that /LeadershipForMen/forum/forumdisplay.php is an incorrect path...but I'm not sure where I need to go in order to change this.

If someone could point me to the right place to change this, I would greatly appreciate it.

And, thank you for helping less-technically-savvy people like myself.
Rename htaccess.txt to .htaccess.
Thanks so much dragon for your speedy response.

I have actually already renamed htaccess.txt to .htaccess (within my root directory) as that was what I was instructed to do when I was going through configuring the forum.  Specifically...

ACP -> Server and Optimization Options -> Enable search engine friendly URLs? -> Enabled

When I made this change, the text instructed me to rename htaccess.txt to .htaccess.

So, what do I need to do now?



If it helps any, here is the content of my .htaccess

Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
It is the htaccess as this link works:

http://leadershipformen.com/forum/forumd....php?fid=1

make sure it is called .htaccess , not .htaccess.txt
do you have another .htaccess file at the parent folder ?
if so can you temporarily rename it (eg. htaccess.feb15) and check if the forum links work normal
Hi .m

As far as I can tell, I do not have a .htaccess in the parent folder. Here is a screenshot from FileZilla...

[Image: LFM-RootDir.JPG]


Just to clarify, the "Remote site: /LeadershipForMen" IS the root directory from my "hosting perspective".  I use GoDaddy's hosting plan where I can have multiple domains on a single hosting plan...and each domain has its own sub-directory...which in this case is /LeadershipForMen.  (Hopefully I said that in a way that makes sense.)

Anyway, as the picture shows, there is no .htaccess at the root directory level.

Here is what my forum directory looks like...

[Image: LFM-ForumDir.JPG]

Leefish, when I click this link: http://leadershipformen.com/forum/forumd....php?fid=1

Here is what I see:

[Image: LFM-Linkview.JPG]

The problem is when I click the "Public" forum...that is when I get the following:

Not Found

The requested URL /LeadershipForMen/forum/forumdisplay.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
it is the htaccess : http://leadershipformen.com/forum/forumd....php?fid=2

see? public.

Is mod rewrite enabled on your server?
(2015-02-16, 07:58 PM)Leefish Wrote: [ -> ]Is mod rewrite enabled on your server?

I don't know. How do I check this?

I use GoDaddy hosting.
Ask your host via whatever contact method they have. Right now - switch off the friendly urls until you hear back from the host
may be rewrite base required (after rewrite engine on)
I'm off to sleep
Pages: 1 2