Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
.htaccess problem
I succesfully installed Vanilla at http://marathonnews.net/forums/ . However, for some reasons, "nice urls" don't seem to work, even though I uploaded the .htaccess-file to the forums directory. In the General Settings, I get this message under "Use Garden's .htaccess file to rewrite urls": "The server configuration for this setting could not be found. If you enable this setting your site may become unavailable."
Can somebody explain what the reason for this might be? It works fine on my local test machine. Also, the WP installation at http://marathonnews.net/ makes use of mod_rewrite without any problems.
Would really appreciate it if I could get rid of the "index.php/" part in the forum urls!!
Can somebody explain what the reason for this might be? It works fine on my local test machine. Also, the WP installation at http://marathonnews.net/ makes use of mod_rewrite without any problems.
Would really appreciate it if I could get rid of the "index.php/" part in the forum urls!!
2
Comments
my webhost (strato) says to support rewriteengine...
I'm seeing a common theme with this WordPress/Vanilla interaction.
Any ideas on a fix?
DirectoryIndex index.php/
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php/$1 [L,R=301]
Now I can set the option for the .htaccess-settings and everything works.
But I don't have clean URLs, the .htaccess puts the index.php in every URL.
So I left this option disabled again...
xxxxxx.com/?p=/discussions/mine
If I leave the "?p=", they don't work anymore.
I'm using the .htaccess of the newest commit:
Options -Indexes
AddType application/x-httpd-php5 .php .php3 .php4 .php5
DirectoryIndex index.php/
Options +FollowSymLinks
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is going to be in a subfolder change this to /foldername
RewriteBase /forum/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
The addition of the ?p= was made in RC3. We don't plan on changing it again, so thanks for bearing with us here.
RewriteRule ^(.*) index.php/$1 [L,R=301]
It should read:
RewriteRule ^(.*) index.php?p=$1 [QSA,L]
That's why you can't login.
Added Options +FollowSymLinks
Thanks to all that have done this already.
I changed the RewriteBase and now it works (don't know why I put the "forum/" in there):
Options -Indexes
AddType application/x-httpd-php5 .php .php3 .php4 .php5
DirectoryIndex index.php/
Options +FollowSymLinks
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]
RewriteCond %{SERVER_PORT} !443
RewriteCond %{HTTP_HOST} ^forum\.xxxxxx\.de$
RewriteRule ^(.*) https://www.ssl-id.de/forum.xxxxxx.de/$1 [R=301,L]