Results 1 to 3 of 3
  1. #1
    New Pligger rcalinjageman's Avatar
    Joined
    Sep 2006
    Posts
    1

    Link problems - .htaccess - possible fix

    Several threads report problems with links not working on the main page. I had the same problem. I found that I had two seperate problems, both of which needed to be addressed. Here's what I did, in case it helps you.

    Symptom:
    Links not working. For example, the main page comes up but you click 'login' and get a file-not-found error.

    Problem 1:
    Pligg is using .htaccess to do some url re-writing. Check to make sure your server is configured to use url rewriting *AND* that it is allowing access to the .htaccess file. This will involve:
    a) Making sure mod_rewrite is enabled
    b) **Makeing sure htaccess can be accessed
    You may need to check the specifics of your server. I have the specific changes to httpd.conf that I used for my server listed at the bottom of this post. Also, see this discussion. Don't forget to restart the server after editing the config. Checking the error log can be helpful for troubleshooting.

    Problem 2:
    *SUBDIRECTORY* even if you get reweriting turned on and working properly, the .htaccess distributed with Pligg is setup for an install to the webroot for your server. Thus, if you installed to a subdirectory you're still going to have problems. In this case, change the fourth line of the .htaccess file from:
    RewriteBase /

    to
    RewriteBase /subdirectory

    Hope this helps. It caused me a good bit of aggravation at first.

    Appendix:
    For my apache server, I had to edit httpd.conf to enable and properly config url rewrites:

    CHANGE
    #LoadModule rewrite_module modules/mod_rewrite.so
    to
    Code:
    LoadModule rewrite_module modules/mod_rewrite.so
    ADD...
    Code:
    AccessFileName .htaccess
     
    <Files ~ "^\.htaccess$">
      order allow,deny
      deny from all
    </Files>
    AND CHANGE
    <Directory "/www/webroot">
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    to...

    Code:
    <Directory "/www/webroot">
      AllowOverride All
      Order allow,deny
      Allow from all
    </Directory>
    don't forget to restart your server after saving these changes.

  2. #2
    Pligg Donor realstorm2006's Avatar
    Joined
    Jan 2010
    Posts
    9
    Thank you very much for pointing it out, saved me lots of time.

  3. #3
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    You replied to a post form 2006
    If you found a 4 year old post beneficial. I'm glad.
    Most anything from that time period was already included in future versions of Pligg.

Similar Threads

  1. 500 error after renaming htaccess.default to .htaccess
    By gnrsu in forum Questions & Comments
    Replies: 2
    Last Post: 09-06-2011, 03:43 PM
  2. change .htaccess default to .htaccess error
    By gadiez in forum Questions & Comments
    Replies: 0
    Last Post: 08-31-2008, 08:33 AM
  3. problems with htaccess, i assume
    By chefdesanto in forum Questions & Comments
    Replies: 2
    Last Post: 10-05-2007, 01:29 PM
  4. Problems with Link Store_Basic function
    By ayyash in forum Questions & Comments
    Replies: 0
    Last Post: 07-20-2007, 06:45 AM
  5. Link problems and testers
    By castrezana in forum Questions & Comments
    Replies: 0
    Last Post: 06-24-2007, 09:23 PM

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 Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting