Results 1 to 9 of 9
  1. #1
    New Pligger homebound's Avatar
    Joined
    Jun 2007
    Posts
    4
    Thanks
    Received:0
    Given: 0

    Does htaccess trailing slash fix need to be adjusted for subfolder?

    My pligg9.6 is installed in a subfolder /news on www.best-juicing.com and I'm experiencing the well-known voting/logging out problems

    I've tried the htaccess fix below without success:

    # Fix trailing slash problem
    RewriteRule ^([^\.]+[^/])$ http://best-juicing.com/$1/ [R=301,L]
    # Remove www., always.
    RewriteCond %{HTTP_HOST} ^www\.best-juicing\.com$ [NC]
    RewriteRule ^(.*)$ http://best-juicing.com/$1 [R=301,L]


    Does this fix need to be adjusted for the /news subfolder? (and how?) Because implementing it causes this URL

    http://www.best-juicing.com/news/index.php

    to redirect automatically to

    http://best-juicing.com/index.php

    Thanks

  2. #2
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    Thanks
    Received:0
    Given: 0
    Hi

    In pligg with a default .htaccess file, if you are using a subfolder.

    ## If Pligg is installed in a subfolder, change the below line to RewriteBase /name-of-subfolder
    RewriteBase /

    Find that line and replace with

    RewriteBase /news

    Then Set your base url as Juicing For Weight Loss - Juicing For Health Helpful In Healthy Weight Loss.

    That way all the requests on Juicing For Weight Loss - Juicing For Health Helpful In Healthy Weight Loss are redirected to Juicing For Weight Loss - Juicing For Health Helpful In Healthy Weight Loss

    In theory that should get the sub-folder working and voting+ajax problems fixed.

    If it doesn't work, i'm one with more expertise in mod_rewrite will reply to this thread.

  3. #3
    New Pligger homebound's Avatar
    Joined
    Jun 2007
    Posts
    4
    Thanks
    Received:0
    Given: 0
    Thanks, Savant

    I've made the changes re RewriteBase /news in htaccess but problems persist eg:

    When I click the "Home" link at the top at the home URL:

    http://www.best-juicing.com/news/index.php

    which is the following:

    http://www.best-juicing.com/news (no trailing slash)

    it "redirects" me to

    http://best-juicing.com/news/ ("www." is now missing)

    and from that point on I have problems eg logging out, unable to vote etc.

    Other links eg the "Published News" link, which is the following:

    http://www.best-juicing.com/news/ (trailing slash included)

    takes me to

    http://www.best-juicing.com/news/

    which presents no problems and permits me to vote, logout etc.

    Any enlightment will be highly appreciated!

  4. #4
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    Thanks
    Received:0
    Given: 0
    you said you tried to fix your htaccess on the first post.

    can you remove all the changes you have made and try out what i said.

    savant

  5. #5
    New Pligger homebound's Avatar
    Joined
    Jun 2007
    Posts
    4
    Thanks
    Received:0
    Given: 0
    Savant,

    I had undone all my initial changes before trying out your instructions, but to no avail.

  6. #6
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    Thanks
    Received:0
    Given: 0
    does it still redirect back as before

    or another problem

  7. #7
    New Pligger homebound's Avatar
    Joined
    Jun 2007
    Posts
    4
    Thanks
    Received:0
    Given: 0
    Hi Savant,

    It redirects as before:

    When I click the "Home" link at the top at the home URL:

    http://www.best-juicing.com/news/index.php

    which is the following:

    http://www.best-juicing.com/news (no trailing slash)

    it "redirects" me to

    http://best-juicing.com/news/ ("www." is now missing)

    and from that point on I have problems eg logging out, unable to vote etc.

    Other links eg the "Published News" link, which is the following:

    http://www.best-juicing.com/news/ (trailing slash included)

    takes me to

    http://www.best-juicing.com/news/

    which presents no problems and permits me to vote, logout etc.

    Thanks for your patience!

  8. #8
    Casual Pligger wanderingmind's Avatar
    Joined
    Mar 2007
    Posts
    57
    Thanks
    Received:0
    Given: 0
    homebound, you managed this finally? I am facing exactly the same problem.

  9. #9
    Casual Pligger wanderingmind's Avatar
    Joined
    Mar 2007
    Posts
    57
    Thanks
    Received:0
    Given: 0
    No solution for Homebound ... I face the same problem, all htaccess modifications suggested by everyone has failed.. Just checked Homebound's site, and his site too is stuck at the point where he described it..

    Anyone seen the same prob in a subfolder before?

Similar Threads

  1. Trailing Slash at the end of URLs
    By idanshechter in forum Questions & Comments
    Replies: 6
    Last Post: 05-31-2010, 04:37 AM
  2. htaccess - Trailing slash affecting login
    By renegadeian in forum Questions & Comments
    Replies: 0
    Last Post: 12-11-2008, 03:37 PM
  3. Missing trailing slashes in some links
    By lwc in forum Questions & Comments
    Replies: 1
    Last Post: 11-26-2007, 07:15 AM
  4. Replies: 2
    Last Post: 07-13-2007, 06:41 AM
  5. Subfolder issue #2: Login.php doesn't point to subfolder
    By jiolasa in forum Questions & Comments
    Replies: 2
    Last Post: 04-18-2006, 11:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg