rewrite
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rewrite [2020-05-25 08:12] – [Nginx] removed needless negative lookahead in regexp. (nginx try_files does the job before the rewrite rule) schplurtz | rewrite [2020-10-05 16:56] – Changed "Configuration Manager" to "Configuration Settings" - the proper name. ben@oueb.ca | ||
---|---|---|---|
Line 14: | Line 14: | ||
- Go to Admin | - Go to Admin | ||
- | - Open Configuration | + | - Open Configuration |
- Change Nice URLs option to .htaccess (use find, it's far down) | - Change Nice URLs option to .htaccess (use find, it's far down) | ||
- Underneath it, check the option to "Use slash as namespace separator in URLs" | - Underneath it, check the option to "Use slash as namespace separator in URLs" | ||
Line 95: | Line 95: | ||
Dokuwiki rewrite rule affect //apachectl status// command and make it return dokuwiki 404 page instead of the server-status page. You can fix that by either putting this in dokuwiki rewrite rules | Dokuwiki rewrite rule affect //apachectl status// command and make it return dokuwiki 404 page instead of the server-status page. You can fix that by either putting this in dokuwiki rewrite rules | ||
- | | + | <code apache> |
+ | RewriteCond %{REQUEST_URI} !^/ | ||
+ | </ | ||
or creating an empty server-status file in dokuwiki root folder where doku.php is located. See forum post [[http:// | or creating an empty server-status file in dokuwiki root folder where doku.php is located. See forum post [[http:// | ||
Line 105: | Line 107: | ||
Enable url rewriting and insert appropriate set of rules: | Enable url rewriting and insert appropriate set of rules: | ||
- | < | + | < |
< | < | ||
< | < | ||
Line 168: | Line 170: | ||
See [[http:// | See [[http:// | ||
- | < | + | < |
server { | server { | ||
listen 80; | listen 80; | ||
Line 204: | Line 206: | ||
in the server section with: | in the server section with: | ||
- | | + | <code nginx> |
+ | fastcgi_param HTTPS on; | ||
+ | </ | ||
The '' | The '' | ||
Line 258: | Line 262: | ||
In your conf/ | In your conf/ | ||
- | | $conf[' | + | <code php> |
+ | $conf[' | ||
+ | </ | ||
This option won't need any webserver setup. However it relies on the PATH_INFO feature of the CGI standard as implemented by Apache. IIS is [[bug> | This option won't need any webserver setup. However it relies on the PATH_INFO feature of the CGI standard as implemented by Apache. IIS is [[bug> |
rewrite.txt · Last modified: 2024-03-13 11:51 by 185.177.84.1