Welcome Guest, Not a member yet? Register   Sign In
htacces takes me to localhost instead of removing index.php
#11

[eluser]behnampmdg3[/eluser]
Thank you for your posts. Unfortunately none worked. I don't understand why whats written in the manual doesn't work!
Quote:RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
#12

[eluser]InsiteFX[/eluser]
Place this at the top of your .htaccess file.
Code:
Testing if Mod Rewrite is working...

If you get a Server 500 Error then it is not working.

@jojo, Those first two lines for application and system are not needed anymore,
CI has .htaccess files to protect them now.
#13

[eluser]jojo777[/eluser]
@InsiteFX thanks man, I didnt notice that....is new for 2.1.x? i've used that code I´ve posted for CI 2.1 always. So this will be enough for the .htaccess, doesnt it? Thanks again!

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /myciproject

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>

Also this line 'php_value default_charset utf-8' where should i put it?
#14

[eluser]behnampmdg3[/eluser]
[quote author="InsiteFX" date="1355974446"]Place this at the top of your .htaccess file.
Code:
Testing if Mod Rewrite is working...

If you get a Server 500 Error then it is not working.[/quote]Hello. I get this:
Quote:Error 500: Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

The problem is on the server side, not with your browser or the address. Most probably, a certain service (e.g., Tomcat engine) is down. Please contact your webmaster.
What should I do?




Theme © iAndrew 2016 - Forum software by © MyBB