Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update site-administration.md #910

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions faq/en/site-administration.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ This will tell you the source code version. Note that this may be different than

OJS uses a REST-style URL syntax for all of its links. To force OJS to remove the "index.php" portion of all URLs, edit `config.inc.php` and set "restful_urls" to "On".

In addition, your server will have to support URL rewriting in order to recognize the new URLs. Apache servers use the mod_rewrite plugin, which must be enabled in your `httpd.conf` file, and the following section added to the correct section of either your `httpd.conf` file or an `.htaccess` file (preferred) in your OJS root directory (the same location as `config.inc.php`):

In addition, your server will have to support URL rewriting in order to recognize the new URLs.

### Apache

Apache servers use the mod_rewrite plugin, which must be enabled in your `httpd.conf` file, and the following section added to the correct section of either your `httpd.conf` file or an `.htaccess` file (preferred) in your OJS root directory (the same location as `config.inc.php`):

```
<IfModule mod_rewrite.c>
RewriteEngine on
Expand All @@ -80,3 +84,14 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
```

### nginx

```
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php/$1 last;
break;
}
}
```