WordPress.org

Ready to get started?Download WordPress

Forums

Anyway to remove the trailing "/" when using sub-folders? (6 posts)

  1. Satyr607
    Member
    Posted 3 years ago #

    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?

  2. tdjcbe
    Member
    Posted 3 years ago #

    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.

  3. Satyr607
    Member
    Posted 3 years ago #

    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.

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

  5. Satyr607
    Member
    Posted 3 years ago #

    Hrmm

    Nuked but still getting the weird redirects to root.

  6. Satyr607
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.