In your forums directory, in /conf/config.php, there is a line:
$Configuration['Garden']['RewriteUrls'] = TRUE;
TRUE = rewrite URL's, FALSE = they way you have it.
There also needs to be an .htaccess file in your root forums directory with this code in it:
RewriteEngine On # Certain hosts may require the following line. # If vanilla is going to be in a subfolder change this to /foldername # RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
This doesn't work for me. I modified the config-defaults.php file as required and also have those lines in my htaccess but still have the ugly urls with index.php? in them.
I was editing the config-default.php and ftp'ing it up to the server as there is no config file on my local system when VanilaForums are downloaded, its created on the server upon installation.
Comments
$Configuration['Garden']['RewriteUrls'] = TRUE;
TRUE = rewrite URL's, FALSE = they way you have it.
There also needs to be an .htaccess file in your root forums directory with this code in it:
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is going to be in a subfolder change this to /foldername
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
My complete htaccess is:
# Modified
RewriteEngine On
RewriteBase /forum
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
I'm using 2.03. Any ideas?
Thx
jwokelly: Edit config.php.
I was editing the config-default.php and ftp'ing it up to the server as there is no config file on my local system when VanilaForums are downloaded, its created on the server upon installation.
Thx