Set up your webserver to enable mod rewrite

From ARK
Revision as of 15:50, 10 February 2015 by Stuarteve (talk | contribs)

Jump to: navigation, search

This step really depends on what webserver you are using and how it has been configured previously. There are lots of tutorials on the web about this and we suggest you google for them.

A useful one is: https://www.digitalocean.com/community/articles/how-to-set-up-mod_rewrite

A couple of things that might catch you out. Firstly you need to ensure mod_rewrite is installed and turned on in your webserver conf.

You also need to ensure that there is a directive either in your main httpd.conf, your virtualhost file or your .htaccess file (depending on where you are setting up your Directory directives) that sets AllowOverride to All.

Something else that may catch you out (especially if you are using custom top pages) - you need this directive to appear in the <head> section of any PHP pages you use:

<base href="<?php echo getWebHost();?>/" />

Also, don't forget to restart your webserver after any configuration changes!