Support » Networking WordPress » Anyway to remove the trailing "/" when using sub-folders?

  • I have the network all set up and running fine. By problem is with the trailing “/” when using the sub-folder option.

    For some reason you can’t go to
    http://www.sitename.com/name
    you have to go to
    http://www.sitename.com/name/

    I know it might seem trivial but not using the “/” keeps redirecting to the root. I am hoping this can be sorted within the .htaccess file or a setting somewhere. I have played with the settings on the super-admin side of things to no avail.

    help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I know it might seem trivial but not using the “/” keeps redirecting to the root.

    Usually that’s a sign that you’ve installed wp/wpmu into a subdirectory or as an addon domain on a CPanel box. Is that what you’ve done? If so, that’s not recommended as you’re now seeing.

    More specific details about what your current server environment would be a plus.

    My install was in its own folder until a few days ago. I moved it all to root in order to use the network feature. The move was interesting but seemed to be up and running fine once I figured out my permalinks were were making it act a little wonky.

    The install used to be in the http://www.sitename.com/blog folder. I tried to set up the network feature when 3.0 dropped and realized that I would need to move my whole install in order to get it to work. Does the /blog folder need to be empty now? That would seem like a weird problem but Ive seen stranger things.

    I am not sure what other info would be useful other than the site itself.
    http://www.the-bunker.net
    you can see one of the pages here
    http://www.the-bunker.net/satyr/

    Thanks for the reply and let me know if any other info would be helpful.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    If there’s a physical /blog folder on the server that you;re *not* using any more, then yeah. nuke it.

    Hrmm

    Nuked but still getting the weird redirects to root.

    Figured it out.

    added:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !\..+$
    RewriteCond %{REQUEST_URI} !/$
    RewriteRule (.*) http://www.the-bunker.net/$1/ [R=301,L]
    RewriteRule ^index\.php$ – [L]

    to my .htaccess file to reroute the /whatsits to /whatsits/
    working great!

    Thanks for all the help gang! I <3 this community ;D

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Anyway to remove the trailing "/" when using sub-folders?’ is closed to new replies.