Welcome Guest, Not a member yet? Register   Sign In
.htaccess
#1

[eluser]Unknown[/eluser]
Hi,

my .htaccess file
Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|i|css|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ /index.php/$1 [L,QSA]

on server my links like: www.mydomain.pl/some-directory/some-file.html not work.
Server says:
Code:
Not Found

The requested URL /urzad-gminy/pobierz-dokumenty.html was not found on this server.

What is wrong ???

On localhost all works great.
Localhost .htaccess file:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|i|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
This code not work on server.
#2

[eluser]Phil Sturgeon[/eluser]
Your problem is using this kind of htaccess file, your server will try to parse EVERYTHING as CI, except for explicit exceptions in the array there (i, robots, css). Search around for a better htaccess file.




Theme © iAndrew 2016 - Forum software by © MyBB