DokuWiki

It's better when it's simple

User Tools

Site Tools


rewrite

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next 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) schplurtzrewrite [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 Manager+  - Open Configuration Settings
   - 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
  
-  RewriteCond %{REQUEST_URI} !^/server-status$+<code apache> 
 +RewriteCond %{REQUEST_URI} !^/server-status$ 
 +</code>
  
 or creating an empty server-status file in dokuwiki root folder where doku.php is located. See forum post [[http://forum.dokuwiki.org/post/32858 | Apachectl status is broken with dokuwiki]] or creating an empty server-status file in dokuwiki root folder where doku.php is located. See forum post [[http://forum.dokuwiki.org/post/32858 | Apachectl status is broken with dokuwiki]]
Line 105: Line 107:
 Enable url rewriting and insert appropriate set of rules: Enable url rewriting and insert appropriate set of rules:
  
-<code iis>+<code xml>
 <rewrite> <rewrite>
 <rules> <rules>
Line 168: Line 170:
 See [[http://nginx.org/|nginx]] [[http://wiki.nginx.org/|documentation]]. In the following example, our server root is /var/www, and we extract dokuwiki to /var/www/wiki. See [[http://nginx.org/|nginx]] [[http://wiki.nginx.org/|documentation]]. In the following example, our server root is /var/www, and we extract dokuwiki to /var/www/wiki.
  
-<code>+<code nginx>
 server { server {
     listen 80;     listen 80;
Line 204: Line 206:
 in the server section with: in the server section with:
  
-  fastcgi_param HTTPS on;+<code nginx> 
 +fastcgi_param HTTPS on; 
 +</code>
  
 The ''last'' keyword of rewrite rules before location setup make sure that rewrite only happens once. You should replace all /dokuwiki/ appeared above to you wiki directory relative to web server root directory. The ''last'' keyword of rewrite rules before location setup make sure that rewrite only happens once. You should replace all /dokuwiki/ appeared above to you wiki directory relative to web server root directory.
Line 258: Line 262:
 In your conf/local.php file, add or modify the line so it reads: In your conf/local.php file, add or modify the line so it reads:
  
-$conf['userewrite'] = 2; |+<code php> 
 +$conf['userewrite'] = 2; 
 +</code>
  
 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>718|known not to work]] with this setting. However, new IIS versions seem to work with this. 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>718|known not to work]] with this setting. However, new IIS versions seem to work with this.
rewrite.txt · Last modified: 2024-03-13 11:51 by 185.177.84.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki