-
Notifications
You must be signed in to change notification settings - Fork 14
Configure URLs
The apache .htaccess file should work out of the box in any root and sub directory of a webserver. If you have problems with url rewriting, it is most likely due to a faulty .htaccess file in a directory above you BlueStats directory.
You will also need to make sure that you have the rewrite module loaded in your apache webserver. Enable it using a2enmod rewrite
Please note that the .htaccess file provided is only an example and may not work in every situation. Thus, no help will be provided with this this file. To configure the urls, go to the BlueStats-Url plugin in the advanced admin section. There, set the urls to the following:
https://www.example.com/pathToStats/{page}/{player}/
for the player url, https://www.example.com/pathToStats/{page}/
for the default url and https://www.example.com/pathToStats/ajax/
for the ajax base url.
If you have not installed BlueStats into the root directory, you must set your URLs to the correct path relative to your installation.
A sample nginx config can be found in the root of the project called nginx-sample.conf
. Edit root and domain to suit your needs. To configure the urls, go to the BlueStats-Url plugin in the advanced admin section. There, set the urls to the following:
https://www.example.com/pathToStats/{page}/{player}/
for the player url, https://www.example.com/pathToStats/{page}/
for the default url and https://www.example.com/pathToStats/ajax/
for the ajax base url.
To configure the urls, go to the BlueStats-Url plugin in the advanced admin section. There, set the urls to the following:
https://www.example.com/pathToStats/?page={page}&id={player}
for the player url, https://www.example.com/pathToStats/?page={page}
for the default url and https://www.example.com/pathToStats/ajax/
for the ajax base url.