rewrite url condition for subfolder
问题 I have an htaccess file here /en/.htaccess and i would like to make this condition (which is for the main htacces inside public_html) to work also for the subfolder en RewriteCond %{THE_REQUEST} /events/eventDetails\.php\?id=(.+)&name=(.+)\sHTTP [NC] RewriteRule ^ /events/%1/%2? [L,R] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^events/([^/]+)/([^/]+)/?$ /events/eventDetails.php?id=$1&name=$2 [L] my htaccess starts like this. RewriteEngine on