there's probably a very simple answer to my question, but after hours of browsing I still haven't found a solution, so thank you very much for all your help. Perhaps I should mention that I'm using a subdomain with Bluehost (multiple domains on the same account).
I would like to rewrite: www.example.com/myfolder to www.example.com/index.php?s=myfolder
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ /index.php?s=$1 [L]
- example.com/abcd -> works
- example.com/abcd/ -> works but destroys my picture URLs
- example.com/abcd/index.php -> doesn't work (redirects me to main page)
Thank you very much for your help. Roland