adding forward slash after rewrite if not exist – Apache
I have read a ton and tried a ton of solutions, but can't find one specific to my needs. In my htaccess I have the following: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^profile/([w-]+)/?$ profile.php?username=$1 [L,QSA] RewriteRule ^profile/([w-]+)/([w-]+)/?$ profile.php?username=$1&type=$2 [L,QSA]…