Howdy, Stranger!

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

Try Vanilla Forums Cloud product
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

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.