The MU forums have moved to WordPress.org

weird redirect when no trailing slash (6 posts)

  1. citypaper
    Member
    Posted 17 years ago #

    I've been working on this on and off for weeks, I know there are other posts about no trailing slash, but at this point I am stumped.

    If I exit index.php before anything can happen AND i rename my .htaccess file in my root directory AND rename the .htaccess in the MU directory AND turn off rewriting in my httpd.conf file I STILL get redirected when blogs.thepaper.net/blogs/mu is entered (no trailing slash)

    There are no rewrite capabilites or code executions I can think of, but it still happens. Anyone?

    Why is this missing slash such a problem anyway?

    Thanks,

    Marc

  2. drmike
    Member
    Posted 17 years ago #

    You may want to do a search of the forums using the search link in the sticky for 'trailing slash' as it's already been discussed with a solution provided.

  3. citypaper
    Member
    Posted 17 years ago #

    As I said, I've been trying for weeks. I have been through all the posts and tried various solutions, none of which work. Further, when no code should be executed, the redirect still transpires. It's maddening. Getting a a no help response kinda sucks. I help people when I can (not here, I'm new here)

    When I search for trailling slash now, this is the number two response.

    The post_nav_link message has not worked out.
    http://mu.wordpress.org/forums/topic.php?id=4564&replies=6

    Nor have any of the others. :-(

    Is there anyone who understands this the redirect fully that can help shed some light?

    Thanks,

    Marc

  4. dsader
    Member
    Posted 17 years ago #

    Try looking at wpmu trac as the problem doesn't occur in normal wordpress.

    http://trac.mu.wordpress.org/ticket/331

  5. deanbag
    Member
    Posted 16 years ago #

    FYI, I think I resolved this with the following Rewrite rules
    This fixes two issues I had:
    1) blogs.mysite.com/blog_name had Next/Prev links like blogs.mysite.com/blog_name/blog_name/page/2

    2) blogs.mysite.com/blog_name/wp-admin redirected to blogs.mysite.com/wp-admin/

    # force a trailing slash for dirs
    RewriteRule !\..{2,4}$ - [C]
    RewriteCond %{REQUEST_URI} !^.*/$
    RewriteRule ^(.+)$ /$1/ [R=301,L]

    I've submitted a ticket: http://trac.mu.wordpress.org/ticket/351

    I'd really like to see more testing of the non-VHOSTS configuration

  6. citypaper
    Member
    Posted 16 years ago #

    I got a fix to the problem. Since I only needed to control it when the slash was missing at the and of the mu/ directory call, the following mod_rewrite did the trick..

    RewriteRule /mu$ http://%{HTTP_HOST}/blogs/mu/ [R=301,L]

About this Topic

  • Started 17 years ago by citypaper
  • Latest reply from citypaper