Problem with htaccess |
[eluser]kbkb[/eluser]
Hi - I use the htaccess from here: http://ellislab.com/codeigniter/user-gui.../urls.html Advanced it for my uses, in special my css-files: Code: AddHandler php5-cgi .php It works fine, if i use a sub-link like: blog/category/1 But it dont work in the root of my directory. When I call http://mydomain/ Then i got 3 times the following error: Quote:A PHP Error was encountered Whats the problem?? ![]() Annother Issue: I wanna use RewriteRule ^(.*)\.html$ /index.php/$1 that all my Pages can be accessed by .html as equal as without .html. I tried: Code: RewriteRule ^(.*)\.html$ /index.php/$1 [L] The funny thing is: both of the rules work for their specific case. But they dont work together at the same time. When I use only the rule with .html on the end, i don't get my error from above.
[eluser]umefarooq[/eluser]
i have attached .htaccess file in message try this one it will work fine and another thing if you want to add .html to your site url no need to change in .htaccess file you have to change in your application/config file Code: $config['url_suffix'] = ".html"; it will add .html to your urls .htaccess file Code: # Deny OR Allow Folder Indexes.
[eluser]Unknown[/eluser]
Hi, it doesn't work for me, the only thing it does is to print "index.php" on the screen, I just copied/pasted your code, what may be the problem? Thanks in advance |
Welcome Guest, Not a member yet? Register Sign In |