MyBB Community Forums

Full Version: can't create anything
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried to install different themes and every time the 'import a theme' page just refresh after 10 seconds, and no theme is uploaded. Same with trying to make forum...can't even create new ones. I can't make anything!

I just installed this mybb on I did have trouble removing the /index.php ending, but after hours, did remove it! I tried many things but ended up renaming htaccess.txt to '.htaccess' and add all this code:

DirectoryIndex index.php

# REDIRECT Force requests for named index files to drop the index file filename, and force non-www to avoid redirect loop
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.(html?|php[45]?)(\?[^\ ]*)?\ HTTP/
RewriteRule ^(([^/]*/)*)index\.(html?|php[45]?)$$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+)/([^\.]+)\.php\ HTTP/
RewriteRule ^([a-zA-Z0-9_-]+)/([^.]+)\.php$$1/$2 [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+)/([^/]+)/([^\.]+)\.php\ HTTP/
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([^.]+)\.php$$1/$2/$3 [R=301,L]

# REDIRECT www to non-wwww
RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
RewriteRule .?{REQUEST_URI} [R=301,L]

# REWRITE url to filepath
RewriteRule ^([a-zA-Z0-9_-]+)/([^/.]+)$ /$1/$2.php [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([^/.]+)$ /$1/$2/$3.php [L]

I did change some permission based on advice from the, i made some 666 and 777. Maybe something is wrong with a folder and permission??? I will give admin login if someone thinks they can do something from there.
Unsure why you renamed all of that and added unnecessary coding?

Follow this tutorial and it'll work:

Then be sure to remove /index.php from header templates, etc. to just /
I tried to add that code, I tried like 10 variations! The one I have is the only one I go to work. Is all that code im using causing my problem of not being able to create forums or install anything?
Also get rid of index.php from /global.php

Find around line 903

// Add our main parts to the navigation
$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl'].'/index.php';

Replace with

// Add our main parts to the navigation
$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl'].'/';

As for header, just remove index.php after /
i put

RewriteCond %{IS_SUBREQ} false
RewriteRule ^index.php$ [R=301,L]

in .htaccess
and changed global.php with line:

// Add our main parts to the navigation
$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl'].'/';

I could access admin panel at /admin/index.php, and install the theme, but my site only work on /index.php....I don't know what you both are talking about header change to "/" idk where header is.

Anyone here want to log into my plesk panel and see if can be fixed? I can't get rid of /index/php without it stopping me from editing site. I changed everything back to normal for now.