Hello,
these .htaccess rules allow clean urls for custom $_GET values inside a folder, it may help someone.
In my case i want to change :
http://mysite.com/mydirectory/?size=big
into ->
http://mysite.com/mydirectory/big/
So after hours of struggle, and facing several problems with stylesheets and the manager :
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Add these 2 lines here
RewriteRule ^mydirectory/([0-9A-Za-z]+)/$ mydirectory/?param=$1 [L,QSA]
RewriteRule ^(manager|assets|core|connectors) - [L] # <-- if not present, stylesheets and manager won't load
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Don’t change the order of the rules. Works fine on localhost.