PDA

View Full Version : URI Rewrites and File Upload - .htaccess



compflash
03-18-2009, 08:18 PM
Can someone help me? I am using a PHP application called Bamboo Invoice built on the Codeigniter framework.

For some of the functionality to work, you have to set up an .htaccess file to rewrite URI's that look like this....

http://subdomain.domain.com/index.php/login/user

Can someone help me with the proper .htaccess rules to accomplish this? The .htaccess provided by the application developer does not work.

Also, this program auto-creates .pdf's and requires a folder to be writable to add the pdf to it. It also supports file uploads. I can't get either to work. What permissions do I need for folders. Also, is there something I need to change in php.ini or something?

wysiwyg
03-18-2009, 08:56 PM
What is the url supposed to be redirected to?

compflash
03-19-2009, 07:27 PM
just to remove the index.php....but I solved that already.

My issue now is the file upload features are not working. I've tried all kinds of folder permissions where the files are supposed to go. Can someone help?

What are the folder perms supposed to be for file uploads?

Do I need to change anything in Bluehost's php.ini?

wysiwyg
03-20-2009, 02:26 AM
The default folder permissions (755) allow your script to do anything to it.

You should find out what the error is before trying to debug it.

You can set error reporting at the top of the script..

<?php
error_reporting(E_ALL);

As a side note, when it says it can't write to something, that doesn't necessarily mean the permissions are wrong. The path may not exist.