Htaccess File

pellu/leon/master/website/.htaccess

REQUEST_FILENAME
Options +FollowSymlinks -MultiViews
RewriteEngine on

RewriteRule profil/([a-zA-Z-0-9-]+)-([0-9]+) profil.php?url=$1&id=$2
RewriteRule news/([a-zA-Z-0-9-]+)-([0-9]+) news.php?url=$1&id=$2
#ForceType application/x-httpd-php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*?)(.html)?$ 404.php?/$1 [QSA,L]

ErrorDocument 404 /404.php
Exit mobile version