Skip to content

Commit

Permalink
Merge pull request #3482 from aitorres/fix-xampp-docs
Browse files Browse the repository at this point in the history
Fixes XAMPP docs .htaccess code samples.
  • Loading branch information
rowasc committed Jun 6, 2019
2 parents 7b1aeaf + e15115d commit d7a1982
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/setup_alternatives/xampp.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
* Add the api url to your hosts file \(127.0.0.1 api.ushahidi.test\)
* Add this file platform/httpdocs/.htaccess:

\`\`\`
```
**Turn on URL rewriting**
## Turn on URL rewriting
RewriteEngine On
Expand All @@ -54,10 +54,11 @@ RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d
RewriteRule .\* index.php/$0 \[PT\]
```text
- Add this file platform/.htaccess
```

* Add this file platform/.htaccess

```
## Turn on URL rewriting
RewriteEngine On
Expand All @@ -74,15 +75,16 @@ Order Deny,Allow Deny From All
RewriteRule .\* httpdocs/$0 \[PT\]
```text
- In your httpd.conf file (open xampp => config -> httpd.conf) , add this virtualhost
```

* In your httpd.conf file (open xampp => config -> httpd.conf) , add this virtualhost

```
ServerAdmin webmaster@localhost DocumentRoot "C:/newxamp/htdocs/platform" ServerName ushahidi.api.test
AllowOverride all </VirtualHost>
AllowOverride all </VirtualHost>
\`\`\`
```

* You're all done. You should be able to access api.ushahidi.test now and see the default API response

0 comments on commit d7a1982

Please sign in to comment.