The MU forums have moved to WordPress.org

Problem with previous articles and subdir blogs (6 posts)

  1. enseignement
    Member
    Posted 16 years ago #

    Hello,

    I have a problem with my Mu Installation (subdirectory installation) :
    When an user access his blog, it's ok.
    http://blog.enseignons.be/morale

    But as soon as he wants to access previous articles, the url is wrong :
    http://blog.enseignons.be/morale/morale/page/2/

    I guess it's because of the / missing at the end of the url. How could I add this / to all the blogs ?

  2. enseignement
    Member
    Posted 16 years ago #

    Sorry, I didn't look in the trac :

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

    This htaccess solved the issue, but created a new one for images, etc.
    It adds a / at the end of .jpg or .jpeg or whatever.

    How can we create a non-dirty solution ?

  3. lunabyte
    Member
    Posted 16 years ago #

    You could write a quick function to analyze the URI, and if the last part contains a dot (indicating a file), then strip the trailing slash.

  4. enseignement
    Member
    Posted 16 years ago #

    Yep, but i'm really a s*** in .htaccess
    :(

    Someone could help me in this ?

  5. Konstan
    Member
    Posted 16 years ago #

    I commented the line that appears there and it fixed the issue for me. So far I don't see anything wrong, but I dont know what commenting that line out does.

    I havent tried the htaccess.

    Edit: I'd really like to know what editing it out could cause :D

  6. enseignement
    Member
    Posted 16 years ago #

    As i did not find a function for this, in my opinion, this ticket is not solved for directory installations ..;

    Am I the only one in this case ?

    Thanks for your help

About this Topic

  • Started 16 years ago by enseignement
  • Latest reply from enseignement