I have a site running at my server and here is the content of the .htaccees file
RewriteEngine on
RewriteCond $1 !^(index\.php|img|public|robots\.txt) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]
few days back i installed WordPress in a folder: example.com/my-blog/ as a stand-alone application
but i could not access it. if i remove the .htaccess file it does work fine but that makes a down the site which in any case i cant not afford. please help.
please help, i am newbie in this.
You could exlude your subfolder from rewriting by adding these two lines to your htaccesfile, before your rewriterule:
Ansari is right btw about $1 not being set and therefore, never rewriting anything.