Permalinks
  • AndreiiiAndreiii
    Posts: 12
    Can I change "/index.php?p=/discussions" to "/discussions" ? And "/index.php?p=/" to "/" ? And how to do this?

    Vanilla 2.0
    Tagged:
  • 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.

    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
  • AndreiiiAndreiii
    Posts: 12
    chriscoyier: Thanks!!! Solved.

    jwokelly: Edit config.php.
  • LincolnLincoln
    Posts: 2,016
    @jwokelly Edit it in config.php NOT config-defaults.php.

    Vanilla developer [GitHub, Twitter]

  • Thanks guys, got it.

    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

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 7

AltazarIdanbzzzglownashirawhu606xvik