Résolu Problème site internet sur vps débian 7

A supp

Premium
Inscription
12 Janvier 2014
Messages
1 167
Réactions
122
Points
14 243
RGCoins
25
Yop, j'ai un gros problème j'ai installer un cms sur mon vps a (Mon a accent ne marche plus :/) la racine /var/www Et quand j'actualise la page ça me met :
déjà ça me redirige sur /main au lieu de l'ip tous court
et ça me met :
Not Found
The requested URL /main was not found on this server.

HELP ! D:
 
Dernière édition:
RewriteEngine on
RewriteRule ^(\w+)$ index.php?page=$1 [L,NC,QSA]
RewriteRule ^(\w+)+\/$ index.php?page=$1 [L,NC,QSA]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1:// [R=301,L]




Mon .htaccess
 
RewriteEngine on
RewriteRule ^(\w+)$ index.php?page=$1 [L,NC,QSA]
RewriteRule ^(\w+)+\/$ index.php?page=$1 [L,NC,QSA]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1:// [R=301,L]

order allow,deny
deny from
allow from all



Mon .htaccess
Fais gaffe tu viens de mettre ton adresse IP ^^ Essaye en supprimant le .htaccess
 
C'est Apache. Va dans ect > Apache2 > sites availables, ouvre ton fichier .conf (normalement c'est 000-default.conf) puis change le documentroot par le chemin de ton site :p



Bonne journée,
Kiru E.SEC
 
Retour
Haut