• Currently, I’m running into an issue where trailing slashes are only handled and redirected properly when I’m logged into the site as an admin.

    Example:

    http://www.site.com/example
    will automatically redirect to
    http://www.site.com/example/

    When logged in. The latter url is what I’m shooting for.

    However, when viewing the site normally, both http://www.site.com/example and http://www.site.com/example/ is accessible and does not redirect.

    What needs to be modified within htaccess to correct this? Thank you.

    My htaccess file currently reads as follows:

    # BEGIN WordPress

    # WPhtc: Begin Custom htaccess
    php_value memory_limit 96M
    # WPhtc: End Custom htaccess

    # WPhtC: Disable ServerSignature on generated error pages
    ServerSignature Off

    # WPhtC: Protect WP-config.php
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>

    # WPhtC: Protect .htaccess file
    <files ~ “^.*\.([Hh][Tt][Aa])”>
    order allow,deny
    deny from all
    </files>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well, .htaccess is going to work the same logged in or not. Are you getting a “not found” page of some sort? If so, the page you made might have been marked as private or something and only visible when logged in.

    Thread Starter SEOJay

    (@seojay)

    It’s doing this across the entire site. Is there something else I should look at if it’s not htaccess related?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘htaccess and redirects’ is closed to new replies.