Link problems - .htaccess - possible fix

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2006, 11:39 AM
New Pligger
 
Join Date: Sep 2006
Posts: 1
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
  #2 (permalink)  
Old 02-15-2010, 05:38 PM
realstorm2006's Avatar
Pligg Donor
Donation Level 1 
 
Join Date: Jan 2010
Posts: 9
Thank you very much for pointing it out, saved me lots of time.
Reply With Quote
  #3 (permalink)  
Old 02-15-2010, 08:14 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,835
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.


Download the full Pligg Module Pack





Reply With Quote
Reply

Tags
.htaccess, .htaccess in subdirectory

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Advertising Add-On for banners Tutorial AnAlienHolakres3 Questions and Comments 19 10-25-2009 07:56 AM
Problems with Link Store_Basic function ayyash Questions and Comments 0 07-20-2007 09:45 AM
Link problems and testers castrezana Questions and Comments 0 06-25-2007 12:23 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development