phil714/mel/master/.htaccess - Htaccess File

phil714/mel/master/.htaccess

Options +FollowSymlinks
RewriteEngine on

# Page inexistante
#ErrorDocument 404 http://localhost/projet-web-portfolio/Web/error.php?code=404

# erreur interne
#ErrorDocument 500 http://localhost/projet-web-portfolio/Web/error.php?code=500

# ^([^/\.]+)  = $1
# ([^/\.]+)$ = $2
#RewriteRule ^([^/\.]+)*[/]*([^/\.]+)*[/]*([^/\.]+)*[/]*$ index.php?dir1=$1&dir2=$2 [L]

# Si le nom du fichier + ".php" est un fichier (-f)
RewriteCond  %{REQUEST_FILENAME}.php -f

# Alors, modifié le fichier par fichier.php.  [L] = break... donc fin de htaccess
RewriteRule ^(.*)$ $1.php [L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache