Go Back   Pligg CMS Forum > Pligg Help > Installation and Upgrade Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-29-2005, 04:39 PM
Casual Pligger
 
Join Date: Dec 2005
Posts: 32
Thanks: 0
Thanked 12 Times in 4 Posts
.htaccess problem anyone ?

Is anyone facing problems related to htaccess file? I uploaded the beta 4 code to my site : http://www.jhakaas.com

However, the 'discuss' and the 'trackback' wont work correctly. I had to manually change the link.php file so that instead of the simple url, i provide a link to http://<my-site>/story.php?id=15

Trackback and other links (cateogry) etc still give the same problem. I reviewed the rewriterules in the .htaccess file and they seem fine to me. although I had to comment out the following two:

#Options +FollowSymlinks
#Options Indexes FollowSymLinks

Else, I was getting a 404 error continously. Has anyone else faced this problem ?

thnx,
Reply With Quote
  #2 (permalink)  
Old 12-29-2005, 06:09 PM
Casual Pligger
 
Join Date: Dec 2005
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
I had the same problem, and the only thing that fixed it was adding in one of the lines you commented out.

#Options Indexes FollowSymLinks
Reply With Quote
  #3 (permalink)  
Old 12-29-2005, 06:49 PM
Casual Pligger
 
Join Date: Dec 2005
Posts: 32
Thanks: 0
Thanked 12 Times in 4 Posts
If I dont comment that line out, I get the following msg:

Forbidden
You don't have permission to access /shakeit.php on this server.

Any help is appreciated.
Reply With Quote
  #4 (permalink)  
Old 05-17-2006, 07:42 PM
New Pligger
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Try it like this, it fixed mine

Options +FollowSymlinks
#Options Indexes FollowSymLinks
Reply With Quote
  #5 (permalink)  
Old 05-23-2006, 08:42 AM
New Pligger
 
Join Date: Apr 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
This is also my problem before and I already fixed this.

open your .htaccess file

then

Options +ExecCGI after the
Options Indexes FollowSymLinks

This change works on my site.
Hope ash will add this to .htaccess file on next build release

Hope this helps.
__________________
http://www.kablogs.com - Blogging related news
http://www.myhobbyhq.com - My Hobbies Do you have one?
http://myhobbyhq.com/airsoftblog - About Airsoft Guns - tips, upgrades, do it yourself.
Reply With Quote
  #6 (permalink)  
Old 06-26-2006, 06:11 PM
Casual Pligger
 
Join Date: Jun 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
That did the trick for me...thank you.
Reply With Quote
  #7 (permalink)  
Old 12-24-2006, 11:46 AM
New Pligger
 
Join Date: Dec 2006
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Hi! Merry Christmas :)

I've got a problem with the mod_rewrite. I've installed Pligg 9 without problems and chose Method 2. My Friendly Urls works suitably except when i load an article, for example called /music/new-article/

(music is the category of the article)

When i try to use one of the category's link in the sidebar, it redirects me to:

/music/new-article/name-of-the-category-in-the-sidebar

And i get an error message. Do you think what's the line with problem in my htaccess? I paste the entire file:
Code:
##### Re-directing Begin #####
Options +Indexes +FollowSymlinks
RewriteEngine on
RewriteBase /noticias
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
## RewriteRule ^(.*)index\.php$ /$1 [R=301,L] ##

	## Remove these two lines if you have a sub-domain like  http://ashdigg.pligg.com  or http://localhost
	## Keep if your site it like   http://www.pligg.com
	RewriteCond %{HTTP_HOST} !^www\.
	RewriteRule ^\/?(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
	## thanks to the many people who have posted this fix in the forums	##

##### Re-directing End #####


##### Friendly URLs Begin #####
Options +Indexes +FollowSymlinks
RewriteEngine On
RewriteBase /noticias
RewriteRule ^story/([0-9]+)/?$ story.php?id=$1 [L]
RewriteRule ^story/([a-zA-Z0-9-]+)/?$ story.php?title=$1 [L]

##### You can find the below line pre-made for you in the category management section of the admin panel ######
RewriteRule ^(all|videos|musica|conciertos|discos|festivales)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|videos|musica|conciertos|discos|festivales)/?$ ?category=$1 [L]


RewriteRule ^recommend/([a-zA-Z0-9-]+)/?$ recommend.php?id=$1 [L]
RewriteRule ^category/([a-zA-Z0-9]+)/?$ ?category=$1 [L]
RewriteRule ^category/queued/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [L]
RewriteRule ^shakeit/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [L]
RewriteRule ^story/([0-9]+)/editcomment/([0-9]+)?$ edit.php?id=$1&commentid=$2
RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1
RewriteRule ^story/([0-9]+)/modify/([a-z]+)/?$ linkadmin.php?id=$1&action=$2
RewriteRule ^user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ user.php?login=$1&view=$2
RewriteRule ^user/([a-zA-Z0-9-]+)/?$ user.php?login=$1
RewriteRule ^search/([a-zA-Z0-9-]+)/?$ index.php?search=$1
RewriteRule ^login/?$ login.php
RewriteRule ^login/([a-zA-Z0-9-]+)/?$ login.php?return=$1
RewriteRule ^login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?return=$1/$2
RewriteRule ^register/?$ register.php
RewriteRule ^user/?$ user.php
RewriteRule ^topusers/?$ topusers.php
RewriteRule ^topstories/?$ topstories.php
RewriteRule ^about/([a-zA-Z0-9-]+)/?$ faq-$1.php
RewriteRule ^shakeit/?$ shakeit.php
RewriteRule ^submit/?$ submit.php
RewriteRule ^bugreport/?$ bugreport.php
RewriteRule ^rss2/?$ rss2.php
RewriteRule ^rss2/([a-zA-Z0-9-]+)/?$ rss2.php?status=$1
RewriteRule ^trackback/([0-9]+)/?$ trackback.php?id=$1
RewriteRule ^profile/?$ profile.php
RewriteRule ^admin/?$ admin_index.php
RewriteRule ^tagcloud/?$ cloud.php
RewriteRule ^tagcloud/range/([0-9]+)/?$ cloud.php?range=$1 [L]
RewriteRule ^tag/(.+)/?$ search.php?search=$1&tag=true [QSA,NC,L]
RewriteRule ^sneak/?$ sneak.php
RewriteRule ^pliggadmin/?$ admin_index.php
RewriteRule ^logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?op=logout&return=$1/$2
##### Friendly URLs End #####
Reply With Quote
  #8 (permalink)  
Old 12-24-2006, 12:42 PM
Pligg Donor
 
Join Date: Dec 2006
Location: Amsterdam
Posts: 30
Thanks: 5
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by Sergio View Post
When i try to use one of the category's link in the sidebar, it redirects me to:
Does it redirect to or link to that url?

The link is what you see in your browser's status bar when you hover your mouse over the category. A redirect is a new url your browser is sent to after you've clicked the link. The redirected url is in the address bar of your browser when the page is loaded.
Reply With Quote
  #9 (permalink)  
Old 12-25-2006, 02:24 AM
New Pligger
 
Join Date: Dec 2006
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
I expressed myself bad, the english is not my fort :)

I meant an URL. That url doesn't exists and I know it's a htaccess' problem, but my knowledge about it's very limited.

In summary, the error happens when you try to use the category link sidebar in the inside of an article, because the categories shown this type of url:

category-article/name-of-the-article-article-you-are-seeing/name-of-the-category-in-the-sidebar

Thanks a lot and excuse my poor english O:-)
Reply With Quote
  #10 (permalink)  
Old 12-25-2006, 06:36 AM
Pligg Donor
 
Join Date: Dec 2006
Location: Amsterdam
Posts: 30
Thanks: 5
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by Sergio View Post
That url doesn't exists and I know it's a htaccess' problem
I don't understand. How do you know that? How can .htaccess change the urls the browser sees in the content of a page, when it's only acting on urls it receives in requests to the web server?
Reply With Quote
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

BB 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
URL Method 2 and .Htaccess Problem... imlerim General Help 11 03-28-2008 09:38 AM
URLMethod 2 Problem (with attached .htaccess) Qwest General Help 1 01-14-2008 12:01 PM
.Htaccess problem AgentVIP General Help 3 06-24-2007 05:43 PM
::How to:: Use .htaccess file with Pligg kbeeveer46 General Help 0 01-25-2007 10:16 AM
Link problems - .htaccess - possible fix rcalinjageman Installation and Upgrade Help 0 09-10-2006 11:39 AM


Search Engine Friendly URLs by vBSEO 3.2.0