No Input File Specified

Status
Not open for further replies.

leftylink

New Member
Messages
3
Reaction score
0
Points
1
Hello folks at x10 Hosting. I'm a new guy here and I am in the middle of setting up a small personal site for myself. I'm using an htaccess file but it causes me to get a "No input file specified" error -

Code:
 # turn on rewriting
RewriteEngine On 

# for all files not found in the file system,
# reroute to index.php bootstrap script
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
As you can see if the request isn't a file or dir, it redirects to index.php and puts the request after the end of index.php, however when I attempt to use it it gives me the "No input file specified". I've done some research and figured out that it is probably because PHP is being run as a CGI here at x10. Is there something I can do to let this htaccess file work?

Edit - doing a search on these forums isn't helping me either - although I am seeing that some people are suggesting an upgrade to PHP Level 2 (Intermediate) - does anyone think that is the problem here? If so I can go request the upgrade now...
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I would request the upgrade but PHP is ran as CGI across the board.
 

Kornswag

New Member
Messages
1
Reaction score
0
Points
0
I am getting this same error and I was just working on it a second ago! I feel retarded...
 

leftylink

New Member
Messages
3
Reaction score
0
Points
1
Thank you for the input Corey - I will request an upgrade and see what happens. I have a question though - is it possible to get the redirect working? Can you suggest a solution for me?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I'm really not that great with .htaccess or mod_rewrite, you might have to look on Google
 

leftylink

New Member
Messages
3
Reaction score
0
Points
1
A few edits to the script and changing the last line ot .htaccess to
Code:
RewriteRule ^(.*)$ index.php?request=$1
have fixed the problem.

Problem resolved.
 
Status
Not open for further replies.
Top