.htaccess rewrite rules for two or more PHP files .htaccess rewrite rules for two or more PHP files apache apache

.htaccess rewrite rules for two or more PHP files


You can use:

RewriteEngine OnRewriteBase /webproject/RewriteCond %(REQUEST_FILENAME) !-fRewriteCond %(REQUEST_FILENAME) !-dRewriteRule ^([\w-]+)$ profile.php?username=$1 [L,QSA]RewriteCond %(REQUEST_FILENAME) !-fRewriteCond %(REQUEST_FILENAME) !-dRewriteRule ^(update_availability(?:\.php)?)/([0-9]+)/([0-9]+)/([0-9]+)/?$ $1?month=$2&day=$3&year=$4 [L,QSA,NC]