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.

Change /discussions/ url-name

I want to change discussion url to

I have changed in .htaccess file is
RewriteEngine On

# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
# RewriteBase /

RewriteCond %{QUERY_STRING} ^p=/?([^&]+)(&([^?]+))?$
RewriteRule ^index\.php %1?%3 [E=X_REWRITE:1,L]
RewriteRule ^discussion/(.*)$ /to/$1 [R,L]
RewriteRule ^to(.*) index.php\?p=discussion$1 [PT,L]

and also add line in config file
$Configuration['Garden']['RewriteUrls'] = TRUE;

by changing this page is redirect but got error

This page isn’t working redirected you too many times.
Try clearing your cookies.

As the requirement is a bit urgent, solution shall be highly appreciated. Thank you!


Sign In or Register to comment.