Hello!
I’m haveing a couple of challanges regarding my htaccess file for my site.
I’m using rewrite rules for SEO purposes like:
RewriteRule ^(.*)/$ index.php?sef_tittel=$1
witch would rewrite www.mysite.com/news/ to www.mysite.com/index.php?sef_tittel=news
The problem is that I have several folders on the server for other purposes, and I don’t want www.mysite.com/newsletters/ to be rewritten, there is a index.php file in that folder, but it gets rewritten.
I’ve put a rewrite rule like this to solve the problem:
RewriteRule ^newsletters/$ newsletters/index.php [L]
RewriteRule ^newsletters$ newsletters/index.php [L]
This works, but I don’t think its a good solution, because I have do alter the htaccess file for each new folder i want this on.
I also have a folder with lots of subfolders www.mysite.com/stuff/ with indexfiles. Is there anyway to stop rewrite rules on this specific folder?