You will need images and other files that will be displayed in index.php.
RewriteEngine On
Includes Rewite Engine
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
If the file name is not equal to jpg, jpeg ... which is necessary for index.php
RewriteRule ^(.*)$ index.php?q=$1 [QSA]
Redirect to index.php.
Using:
With PHP, $_GET q will provide you with /articles/1987/12/20/RΓ©pa birthday/
If you split the variable in each slash with
list($type, $date_year, $date_month, $date_day, $title) = split('[/-]', $_GET['q']);
You will get exactly what you want.
RepΓ‘s
source share