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

www.piwik.org should redirect to piwik.org #5626

Closed
robocoder opened this issue May 1, 2008 · 1 comment
Closed

www.piwik.org should redirect to piwik.org #5626

robocoder opened this issue May 1, 2008 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Website matomo.org For issues related to our matomo.org website.

Comments

@robocoder
Copy link
Contributor

Currently, http://www.piwik.org exposes the web root directory (showing oa, piwik, and projects).

You might be able to use a .htaccess containing the following:

RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^piwik.org [NC]
RewriteRule (.*) http://www.piwik.org/$1 [R=301,L]

Similarly, you’d need to put .htaccess files into the subfolders so those subdomains work.

@robocoder
Copy link
Contributor Author

Sorry, that should have been:

```
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^piwik\.org [NC]
RewriteRule (.*) http://www.piwik.org/$1 [R=301,L]
```

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Website matomo.org For issues related to our matomo.org website.
Projects
None yet
Development

No branches or pull requests

1 participant