MyBB.support, le portail francophone de MyBB

Version complète : Portail en page d'accueil
Vous consultez actuellement la version basse qualité d’un document. Voir la version complète avec le bon formatage.
Bonjour à tous,

Comment mettre son portail en page d'accueil sur son forum MyBB?

Merci d'avance pour vos réponses
Amicalement
Dylan44
Question fréquemment posée, une recherche avec simplement le mot "portail" aurait donné des réponses.

Il faut ajouter la ligne suivante, dans un fichier ".htaccess" au répertoire racine du Forum :
Code :
DirectoryIndex portal.php index.php
Mais là, ça ne marche pas :'(
URL du site?
Il me faudrait voir le contenu du fichier ".htaccess"
Je sais pas si j'ai mis au bon endroit mais bon...

Citation :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]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [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>

DirectoryIndex portal.php index.php
La ligne "DirectoryIndex portal.php index.php" devrait se retrouver juste sous "Options -MultiViews +FollowSymlinks -Indexes"...
Mais ce que tu dit c'est htaccess.txt? Parceque le .htaccess est vide :p Sinon cça marche toujours pas
Tu dois mettre tout cela dans un fichier htaccess.txt, puis le renommer en .htaccess quand il est sur le serveur vu qu'il est impossible de le renommer en .htaccess sur ordi Wink
Non, le fichier doit vraiment s’appeler ".htaccess", s'il n'existe pas, il doit simplement être créé. L'important est que la ligne mentionnée par moi doit être au début du fichier.

@Adula-Kun, le fichier peut être créé et éditer avec un client FTP. Il n'est pas nécessaire de le renommer par la suite...
Cela ne marche toujours pas Sad
J'ai mis ça :
Citation :# Do not remove this line, otherwise mod_rewrite rules will stop working
DirectoryIndex portal.php index.php
RewriteBase /
Le nom du fichier est-il bien ".htaccess"?

Le fichier est bien dans le répertoire du forum MyBB?

Les droits du fichier sont bien "644"?
Oui, oui et oui

EDIT : si vous voulez me parler plus directement, il y a le tchat de mon forum Big Grin
Serait-il possible de me faire parvenir les détails d'accès FTP au compte par Message Privé?
Oui je te donne ça
La ligne avait été ajoutée à la fin d'un commentaire, elle n'était donc pas fonctionnelle.
J'ai replacé la ligne en dessous(avec un retour de chariot) et tout fonctionne bien!

Wink
Ah ok Big Grin Merci beaucoup, je te bennis Smile
 Utilitaire de traduction fourni par Regentronique