Go Back   Pligg Forum > Pligg Help > Installation and Upgrade Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2006, 10:39 AM
rcalinjageman rcalinjageman is offline
New Pligger
 
Join Date: Sep 2006
Posts: 1
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 2 Times in 1 Post
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 /

toRewriteBase /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.
Reply With Quote
The Following 2 Users Say Thank You to rcalinjageman For This Useful Post:
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS friendly link not working. can8dn General Help 4 01-03-2007 05:11 PM
How 2 link the #votes to the comment/story pligg page noyp General Help 1 08-06-2006 08:39 PM
How do i change story link to url link new new Pligg Mods 2 06-28-2006 08:21 AM
.htaccess Generator 3dKiller General Help 0 05-24-2006 10:07 PM
.htaccess + admin bug. can anyone please help? boofme Bug Report 4 03-08-2006 08:59 AM


LinkBacks Enabled by vBSEO 3.0.0