Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.
.htaccess rewrite for friendly urls (update to documentation needed?)

On the page below of the docs it gives you some code for your .htaccess file that should get the friendly URLs working (URLs without index.php?p=/etc).
http://vanillaforums.org/docs/controllers
This seems to be a little out of date, so I offer up the code that worked for us:
In addition to this the controllers document could do with a reminder to edit the conf/config.php file and set the following global to "TRUE":
Or a link to this document: http://vanillaforums.org/docs/installation#step7
I recall from first trying to get this to work I managed to get the .htaccess side of things done but couldn't work out how to make the garden recognised the fact that it didn't need the index.php.
http://vanillaforums.org/docs/controllers
This seems to be a little out of date, so I offer up the code that worked for us:
# Make fancy URLS work
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?p=/$1 [QSA,L]
In addition to this the controllers document could do with a reminder to edit the conf/config.php file and set the following global to "TRUE":
$Configuration['Garden']['RewriteUrls'] = TRUE;
Or a link to this document: http://vanillaforums.org/docs/installation#step7
I recall from first trying to get this to work I managed to get the .htaccess side of things done but couldn't work out how to make the garden recognised the fact that it didn't need the index.php.
Tagged:
0