.htacces did not work with CI 1.7.2 an php 5.3 |
[eluser]joytopia[/eluser]
Hi all, I tried to hide the index.php with .htacces, CI 1.7.2 and php 5.3 and got an error 404. After downgradig to php 5.2.9 it worked properly (php 5.2.11 did not work too). Anybody else had this issue? Thanks and best regards Bernd
[eluser]enSo[/eluser]
yeah, I'm getting a HTTP 500 error when adding this to the .htaccess file: RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
[eluser]skunkbad[/eluser]
I have my .htaccess working on 5.2.11. It's not CI. There'd be plenty of people using php 5.3 that can tell you their site is working fine too. Check that you can use .htaccess and that mod_rewrite is enabled. Check your config/config and tweak settings if necessary.
[eluser]skunkbad[/eluser]
Trying checking the URI_PROTOCOL in config/config: Code: /* Also verify that all settings in config/config and index.php are accurate.
[eluser]enSo[/eluser]
ok, now I got it working by uncommenting this line from httpd.conf LoadModule rewrite_module modules/mod_rewrite.so But now whenever I go to one of my links, it gets to the wampserver index page. Any idea why that happens?
[eluser]joytopia[/eluser]
I made a new installation of CI 1.7.2 with exactly the recommended .htacces I kept Code: $config['uri_protocol'] = "AUTO"; With up to php 5.2.9 it works. With higher releases it does not. Does anybody has this – I think normal – combination running with php 5.3? Thanks and best regards Bernd
[eluser]enSo[/eluser]
I can use it, the urls work, but they all show the main page - any idea why that happens? I use the script from the user guide :|
[eluser]joytopia[/eluser]
Now I got it working: First I had the .htacces from the user guide, which did not work. Now I found the article in the wiki: http://codeigniter.com/wiki/mod_rewrite/ This works fine. Thanks Bernd
[eluser]enSo[/eluser]
[quote author="joytopia" date="1260975194"]Now I got it working: First I had the .htacces from the user guide, which did not work. Now I found the article in the wiki: http://codeigniter.com/wiki/mod_rewrite/ This works fine. Thanks Bernd[/quote] Ah thanks, that worked like a charm. You guys should change that code in the user guide |
Welcome Guest, Not a member yet? Register Sign In |