Manual talk:Short URL/Page title -- Windows & Apache without 403 on Special Pages

About this board

A simple way to solve "no input file specified"

1
Wujx3433 (talkcontribs)

IIS aspect:

Find your php.ini file, and search

;cgi.force_redirect = 1

change it into

cgi.force_redirect = 0

(attention, no semicolon).


Apache aspect:

It is easier to solve than IIS.

Just add an question mark after index.php in .htaccess file, change it into

RewriteRule ^(.*)$ /index.php?/$1 [L]

This problem may be due to a wrong suffix name resolution of Apache.

References: https://blog.csdn.net/wanganji5252/article/details/81782074

Reply to "A simple way to solve "no input file specified""

if Wiki is installed in subdirectory

1
Mirrabeau (talkcontribs)

Directives in httpd.conf under VirtualHost must include the subdirectory information:

RewriteEngine On

RewriteRule ^/subdir/(.*):(.*) /subdir/index.php/$1:$2


Directives under <Directory "D:/path/to/directory"> did not do the job for escaping semicolons.

By the way, thanks for the great job, very clear explanations and simple code to use.

I was struggling for years with this one on several wikis installed on Windows server and Apache.


~~~~

Reply to "if Wiki is installed in subdirectory"
There are no older topics