I am using the htaccess provided by codeigniter in their website.
Everything works file, but when i use a / after the url, everything gets messed up.
say my domain is www.example.com/mycontroller this will work fine but www.example.com/mycontroller/ makes every thing messed up, no style no image and all that.
I solved the issue by using base_url() in front of the links for stylesheet and images etc. But isnt there any other way so that I dont have to go through every image and link to add base_url().
The .htaccess file contains
RewriteEngine on
RewriteCond $1 !^(index\.php|css|images|robots\.txt)
RewriteRule ^(.*)$ ./index.php/$1 [L]
base_urlsounds like the best way to do it. It's modifiable and extensible.