Redirect to having a / (trailing slash) end of the URL.

I am trying to have a / (trailing slash) end of the URL on the homepage. So it will be like this https://champion****ing.com/ instead of https://champion****ing.com.

How can we achieve this? Please help.

  • Nithin
    • Support Wizard

    Hi Jonathan,

    Could you please try the following code inside .htaccess file, and see how it goes?

    RewriteCond %{REQUEST_URI} !(/$|\.)
    RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]

    .htaccess file resides inside the root directory, ie where wp-config.php resides. Please check, and let us know how that goes.

    Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.