I have a directory (/next/) that contains a .htaccess file. Inside the directory /next/ I have the directory /admin/. I want the URIs in the directory /next/admin/ to be nice and stuff so this is what I put inside my .htaccess that is located in the directory /next/:

RewriteEngine On
RewriteBase /next/
RewriteRule ^admin/(.*)/?$ /next/admin/?target=$1 [QSA]
But it isn't working. I checked my error log, but I couldn't find anything helpful. Any help is greatly appreciated! Thanks in advance.