Jump to content
php.lv forumi

CI .htaccess neļauj lejuplādet *.xls


reiniger

Recommended Posts

Sveiki.

 

Izmantoju CodeIgniter un tur man datus saglabā *.xls failā.

 

Visa saglabāšana uz serveri notiekas bez problēmām, bet kad vēlos šo failu atvērt tad man ir error un neļauj atvērt.

 

mans .htaccess

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|xls|img|favicon\.ico|robots\.txt)
RewriteRule ^(.*)$ /test/index.php?/$1 [L]

Kad noņemu nost .htaccess, tad bez problēmām varu lejuplādēt xls!

 

Mapes permission ar izmēģinājos. Tagad stāv 755.

 

Man ar .htacces kādu triku vajag?

Link to comment
Share on other sites

Atrisināju problēmu.

.htaccess

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|xls|img|favicon\.ico|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /test/index.php?/$1 [L]
Edited by reiniger
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...