ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Adding a Trailing Slash

May 19, 2012 9:58am

Subscribe [2]
  • #1 / May 19, 2012 9:58am

    anoopbal

    152 posts

    Hi,

    I am trying add a trailing slash to my pages.

    Here is the htaccess code, but it is not working.Can aayone check please?

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ <a href="http://www.exercisebiology.com/$1/">http://www.exercisebiology.com/$1/</a> [L,R=301]

    Thank you so much
    Anoop

  • #2 / May 22, 2012 12:07pm

    ChiefAlchemist

    913 posts

    hi Anoop

    This looks to be slightly different than what you’ve posted.

    http://enarion.net/web/htaccess/trailing-slash/

    Perhaps that one line will make the difference?

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases