If the following conditions are true, rewrite the URL:
If the requested file name is not a directory,
RewriteCond %{REQUEST_FILENAME} !-d
and if the requested file name is not a regular file that exists,
RewriteCond %{REQUEST_FILENAME} !-f
and if the requested file name is not a symbolic link,
RewriteCond %{REQUEST_FILENAME} !-l
then rewrite the url like this:
Take all the name of the request file and specify it as the value of the url request parameter for index.php. Add the query string from the source URL as optional query parameters (QSA) and stop processing this .htaccess (L) file.
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
antelove Jul 21 '17 at 0:03 2017-07-21 00:03
source share