ubuntu a2enmod rewrite pb .htaccess
Bonjour,
sur une machine ubuntu en local j'ai installé php, apache2
j'ai créé un virtualhost ==> fonctionnel
par contre au niveau de l'url j'ai monsite.fr/rep/index.php/
je voudrais lors de l'appel à monsite.fr/rep que cela réagisse pour ne pas afficher index.php mais ensuite il y a d'autres rewrite
j'ai donc activé a2enmod rewrite
j'ai aussi modifié mon virtualhost pour mettre AllowOverride All
à tous les endroits
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<VirtualHost *:80>
ServerAdmin webmaster@monsite1.fr
ServerName www.monsite1.fr
ServerAlias monsite1.fr *.monsite1.fr
DocumentRoot /home/user/public_html
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/user/public_html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost> |
mon .htaccess
Code:
1 2 3 4 5 6 7 8
|
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule> |
mais cela ne fonctionne pas que me manque t il ?